digitalmars.D.learn - iftype on struct or class?
- clayasaurus (3/3) May 28 2005 Is it possible to use iftype to determine if T is a class or a struct?
- Hasan Aljudy (4/8) May 28 2005 All classes inherit from Object.
- Walter (4/5) May 28 2005 You can determine if it's a class by using :Object. Being able to tell i...
- clayasaurus (2/12) May 29 2005 does etc. include arrays? : )
- clayasaurus (2/18) May 29 2005 nevermind *doh*
- Andrew Fedoniouk (2/4) May 29 2005 Sounds very promising :) Just one question: next version or build? :)
- Walter (4/9) May 31 2005 version.
Is it possible to use iftype to determine if T is a class or a struct? Or is there a better way? I havn't had any luck. :-/ thx.
May 28 2005
clayasaurus wrote:Is it possible to use iftype to determine if T is a class or a struct? Or is there a better way? I havn't had any luck. :-/ thx.All classes inherit from Object. I haven't tried using iftype, but if it works on super classes, then you can check if the type is "Object". if it is, it's probably a class.
May 28 2005
"clayasaurus" <clayasaurus gmail.com> wrote in message news:d7ame3$1b33$1 digitaldaemon.com...Is it possible to use iftype to determine if T is a class or a struct?You can determine if it's a class by using :Object. Being able to tell if it is a struct, union, interface, enum, etc., is coming in the next version.
May 28 2005
Walter wrote:"clayasaurus" <clayasaurus gmail.com> wrote in message news:d7ame3$1b33$1 digitaldaemon.com...does etc. include arrays? : )Is it possible to use iftype to determine if T is a class or a struct?You can determine if it's a class by using :Object. Being able to tell if it is a struct, union, interface, enum, etc., is coming in the next version.
May 29 2005
clayasaurus wrote:Walter wrote:nevermind *doh*"clayasaurus" <clayasaurus gmail.com> wrote in message news:d7ame3$1b33$1 digitaldaemon.com...does etc. include arrays? : )Is it possible to use iftype to determine if T is a class or a struct?You can determine if it's a class by using :Object. Being able to tell if it is a struct, union, interface, enum, etc., is coming in the next version.
May 29 2005
Being able to tell if it is a struct, union, interface, enum, etc., is coming in the next version.Sounds very promising :) Just one question: next version or build? :) Andrew.
May 29 2005
"Andrew Fedoniouk" <news terrainformatica.com> wrote in message news:d7e8qg$148c$1 digitaldaemon.com...version.Being able to tell if it is a struct, union, interface, enum, etc., is coming in the nextbuildSounds very promising :) Just one question: next version or build? :)
May 31 2005