Unix equivalent of a variant??

Andreas Hauser andy at splashground.de
Thu Feb 3 03:03:48 PST 2005


jcm wrote @ Tue, 1 Feb 2005 16:51:02 +0000:

Hoi,

> I'm finally doing something very exciting here at work: porting software to
> Unix!
> 
> I need the equivalent of a variant, however.  A hold-everything variable
> that can be any type in C/C++.  Is there something already out there I can
> use or should I just roll my own?

There is a big chance the language you used on the other system is already ported.
Which language had you been using ?

Interesting in the C context might be to read about union, cast, and pointers.


Andy





More information about the Users mailing list