list of anything

David Nadlinger see at klickverbot.at
Sat Dec 18 04:35:21 PST 2010


On 12/18/10 1:16 PM, spir wrote:
> But I could not find a way to do that, instead get weird error messages like eg 'int' is not a value (so, what else?).
It is a type, and as such a compile-time entity rather than a runtime 
value. You might want to have a look at »typeid()« though, which returns 
runtime type information.

Is there a reason why something like std.variant doesn't fit the bill?

David


More information about the Digitalmars-d-learn mailing list