Why Ruby?

Simen kjaeraas simen.kjaras at gmail.com
Sun Dec 12 11:24:38 PST 2010


Nick Sabalausky <a at a.a> wrote:

>> void myfun(void delegate(string) lol) {
>>        lol("say it ");
>> }
>>
>> void main() {
>>        myfun = (string what) {
>>                assert(0, what ~ " lol");
>>        };
>> }
>> ========
>
> I'm sure that's going to disappear when D's properties get implemented as
> intended.

I'm not. Consider:

@property void myfun(void delegate(string) lol) {
        lol("say it ");
}

void main() {
        myfun = (string what) {
                assert(0, what ~ " lol");
        };
}


-- 
Simen


More information about the Digitalmars-d mailing list