Prevention of UFCS hijacking
Maxim Fomin
maxim at maxim-fomin.ru
Tue Aug 27 12:41:42 PDT 2013
On Tuesday, 27 August 2013 at 19:00:43 UTC, H. S. Teoh wrote:
> 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
It wasn't me who invented this :)
More information about the Digitalmars-d
mailing list