www.digitalmars.com         C & C++   DMDScript  

D - Very exciting

reply Colin JN Breame <Colin_member pathlink.com> writes:
I've just read the article on OSNews and looked at some of the language
reference.  It all looks very exciting and exactly the kind of language I would
like to use (I was considering learning ML but that can wait!)

Just a few questions:

- are there any facilities for type introspection?  and attaching meta-data
elements (e.g. to class, function, etc.)?
- can I cast from an array of objects to an array of my type?
- is there support for dynamically loading modules?
- is there any will to standardise the language?

Tremendous effort and maximum Kudos to Walter et al. - looks like you've put a
lot of thought into the design.

(ps. the Gnome guys are looking for a language just like this)
Apr 19 2004
parent J Anderson <REMOVEanderson badmama.com.au> writes:
Colin JN Breame wrote:

I've just read the article on OSNews and looked at some of the language
reference.  It all looks very exciting and exactly the kind of language I would
like to use (I was considering learning ML but that can wait!)

Just a few questions:

- are there any facilities for type introspection?  and attaching meta-data
elements (e.g. to class, function, etc.)?
  
Not yet. Well there is RTTI. See http://www.prowiki.org/wiki4d/wiki.cgi?HowTo/RealtimeTypeInformation. This has been much-discussed. One of the number one questions I believe.
- can I cast from an array of objects to an array of my type?
  
Sure. class A { } class B { } void main() { A a[100] = new A[100]; B b[100] = new B[100]; a[] = (A[]) b[]; }
- is there support for dynamically loading modules?
  
LoadLibarary, just like in C. -- -Anderson: http://badmama.com.au/~anderson/
Apr 19 2004