Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
May 28, 2005 iftype on struct or class? | ||||
---|---|---|---|---|
| ||||
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 Re: iftype on struct or class? | ||||
---|---|---|---|---|
| ||||
Posted in reply to clayasaurus | 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 29, 2005 Re: iftype on struct or class? | ||||
---|---|---|---|---|
| ||||
Posted in reply to clayasaurus | "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 29, 2005 Re: iftype on struct or class? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | 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 Re: iftype on struct or class? | ||||
---|---|---|---|---|
| ||||
Posted in reply to clayasaurus | 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 30, 2005 Re: iftype on struct or class? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | >
> 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.
|
June 01, 2005 Re: iftype on struct or class? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrew Fedoniouk | "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 version. > > > > Sounds very promising :) Just one question: next version or build? :) build |
Copyright © 1999-2021 by the D Language Foundation