Re: [sv-bc] Function call without parenthesis

From: Paul Graham <pgraham_at_.....>
Date: Wed Dec 14 2005 - 09:52:48 PST
> Is the above code illegal? Or is the compiler is supposed to figure out
> that "f1.first" is a hierarchcial reference, where "f2.first" is an
> attribute inquiry?  

And f2 could be a variable of a parameterized type, so that
f2.first might be an enum method or a struct field.  Pity
the poor reader.  Pity the poor implementor!

Paul
Received on Wed Dec 14 09:52:57 2005

This archive was generated by hypermail 2.1.8 : Wed Dec 14 2005 - 09:53:11 PST