It doesn’t - the symbol is only forwarded to getfield if its indeed a field name. Otherwise the result of getindex (i.e. D[:x]) is returned.
1 Like
It doesn’t - the symbol is only forwarded to getfield if its indeed a field name. Otherwise the result of getindex (i.e. D[:x]) is returned.