"Simen kjaeraas" <simen.kja...@gmail.com> wrote in message 
news:op.vnl77cjyvxi...@biotronic-pc.lan...
> Nick Sabalausky <a...@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");
>        };
> }
>

Oh yea, a getter. Of course. I see now.


Reply via email to