digitalmars.D.learn - iftype on struct or class?
- clayasaurus <clayasaurus gmail.com> May 28 2005
- Hasan Aljudy <hasan.aljudy gmail.com> May 28 2005
- "Walter" <newshound digitalmars.com> May 28 2005
- clayasaurus <clayasaurus gmail.com> May 29 2005
- clayasaurus <clayasaurus gmail.com> May 29 2005
- "Andrew Fedoniouk" <news terrainformatica.com> May 29 2005
- "Walter" <newshound digitalmars.com> May 31 2005
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...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.
does etc. include arrays? : )
May 29 2005
clayasaurus wrote:Walter wrote:"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.
does etc. include arrays? : )
nevermind *doh*
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...Being able to tell if it is a struct, union, interface, enum, etc., is coming in the next
Sounds very promising :) Just one question: next version or build? :)
build
May 31 2005









Hasan Aljudy <hasan.aljudy gmail.com> 