Prevention of UFCS hijacking

H. S. Teoh hsteoh at quickfur.ath.cx
Tue Aug 27 11:59:14 PDT 2013


On Tue, Aug 27, 2013 at 08:40:16PM +0200, Maxim Fomin wrote:
[...]
> Let's start from basics:
> 
> writeln = 42;
> 
> and this is also by design.

If that can be called a design at all, it's a horrible design. It should
be illegal, if it isn't already. It makes assignment syntax meaningless,
and is useful only for obfuscated code contests.


T

-- 
Why have vacation when you can work?? -- EC


More information about the Digitalmars-d mailing list