e->Expression::castTo() equivalence in D?

davidl davidl at 126.com
Tue May 20 01:44:59 PDT 2008


在 Tue, 20 May 2008 16:40:06 +0800,davidl <davidl at 126.com> 写道:

> there's no such equivalence as far as I can see.
>
> Is it bad to use that syntax or D lacks that specific expressiveness?
>

I actually request the way of calling method in the way of free function

Expression.castTo(my_inst, blahargs);

RealExp.castTo(my_inst.blahargs);



-- 
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/



More information about the Digitalmars-d mailing list