www.digitalmars.com         C & C++   DMDScript  

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

reply davidl <davidl 126.com> writes:
there's no such equivalence as far as I can see.

Is it bad to use that syntax or D lacks that specific expressiveness?

-- 
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
May 20 2008
next sibling parent davidl <davidl 126.com> writes:
在 Tue, 20 May 2008 16:40:06 +0800,davidl <davidl 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/
May 20 2008
prev sibling parent reply janderson <askme me.com> writes:
davidl wrote:
 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 don't understand. What language is e->Expression::castTo() used? -Joel
May 25 2008
parent davidl <davidl 126.com> writes:
在 Mon, 26 May 2008 13:55:50 +0800,janderson <askme me.com> 写道:

 davidl wrote:
 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 don't understand. What language is e->Expression::castTo() used? -Joel
C++ and dmdfe :p -- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
May 26 2008