Keywords: How to trick the compiler?
Ary Borenszweig
ary at esperanto.org.ar
Tue Jan 28 06:26:08 PST 2014
On 1/28/14, 10:00 AM, "Ola Fosheim Grøstad"
<ola.fosheim.grostad+dlang at gmail.com>" wrote:
> On Tuesday, 28 January 2014 at 12:58:29 UTC, Stanislav Blinov wrote:
>
>>> I really wonder whether the rule could be relaxed a little bit.
>>
>> o_O How?
>
> If "body" never appears after a ".", and is only before a "{" then there
> is no conflict?
Exactly: body is only a conflict when appearing alone. But after a "."
it's perfectly fine.
In Ruby you can do this:
class Foo
def end
1
end
end
Foo.new.end
More information about the Digitalmars-d-learn
mailing list