Make dur a property?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Jan 24 08:27:02 PST 2013


On 1/24/13 3:38 AM, Tommi wrote:
> I've always secretly hated the ambiguity in D's syntax. E.g:
>
> foo.bar
>
> What could foo and bar be? D has many more answers than C++:
>
> D C++
> foo bar foo bar
> Module/Namespace x x
> Type x x
> Variable x x x x
> Method x
> Free function x x

Nah, C++ has also namespace, inner classes and function-local classes... 
lookup and resolution are actually more complicated than D.

Andrei


More information about the Digitalmars-d mailing list