rationale: [] and ()

Manfred_Nowak svv1999 at hotmail.com
Fri Dec 10 06:22:10 PST 2010


What is the rationale for having both: normal and square brackets?

I ask because in plain old C I interpreted the lexical difference of 
funtion calls and accesses to elements of arrays as a permanent hint for 
linear runtime in case of arrays. But because of `opIndex' this assumption 
has been invalidated a long time ago.
 
-manfred 


More information about the Digitalmars-d mailing list