DragonFly BSD
DragonFly users List (threaded) for 2005-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Unix equivalent of a variant??


From: Andreas Hauser <andy@xxxxxxxxxxxxxxx>
Date: 3 Feb 2005 11:03:06 -0000

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]