On 28 Apr 2015, at 12:45, Alan DeKok <aland@deployingradius.com> wrote:
On Apr 28, 2015, at 12:40 PM, Matthew Newton <mcn4@leicester.ac.uk> wrote:
I guess it's historical, but just wondering why unquoted strings are permitted at all.
Historical.
Can they be removed in 3.1?
Probably, yes. Arran and I have had a number of discussions around this.
Some unquoted strings should be allowed, where the context is clear. e.g. the RHS of the following:
if (&NAS-Port-Id == 0)
For the left side, using unquoted strings is almost always wrong.
You do type inference from the format of barewords, and leave strings as strings. Integers are easy, but we might be able to do IPv4/IPv6 addresses/prefixes as well. Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2