April 19, 2004 Very exciting | ||||
---|---|---|---|---|
| ||||
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) |
April 19, 2004 Re: Very exciting | ||||
---|---|---|---|---|
| ||||
Posted in reply to Colin JN Breame | 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/ |
Copyright © 1999-2021 by the D Language Foundation