Keywords: How to trick the compiler?

Ary Borenszweig ary at esperanto.org.ar
Tue Jan 28 09:18:44 PST 2014


On 1/28/14, 11:30 AM, bearophile wrote:
> Ary Borenszweig:
>
>> In Ruby you can do this:
>>
>> class Foo
>>   def end
>>     1
>>   end
>> end
>>
>> Foo.new.end
>
> Ruby is a different language from D, they define "code safety" in quite
> different ways.
>
> Bye,
> bearophile

Having a method named "end" doesn't make the language less safe.


More information about the Digitalmars-d-learn mailing list