On Wednesday, February 4, 2015 at 3:02:54 PM UTC+11, Tony Kelman wrote:
>
> Is this possible right now? Say I want to have a type with field names 
> type, using, import, immutable, for, while, do, ...
>
> The parser doesn't seem to like this much, just wondering whether anyone 
> knows of any interesting workarounds. Since I actually really only need a 
> container for the use case I'm working on at the moment I can just use a 
> dict, but this made me curious.
>
>
Unlikely to be allowed, 
http://docs.julialang.org/en/latest/manual/variables/#allowed-variable-names 
says "The only explicitly disallowed names for variables are the names of 
built-in statements" and although I can't find a reference, I understand 
the rules for fieldnames match those for variables.

Cheers
Lex

Reply via email to