Datatypes

Hello
how.can I.build a uniun (different variables/types at the same memory
location) ?
I didnt find any class having that predefined?
Berg

Why? It's in C for the sake of dealing with small registers or other space-sensitive situations, which don't really happen in Ruby.

···

On Feb 26, 2016, 10:52 -0500, A Berger<aberger7890@gmail.com>, wrote:

Hello
how.can I.build a uniun (different variables/types at the same memory location) ?
I didnt find any class having that predefined?
Berg

Unsubscribe:<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Not clear what exactly you want to do, but you could have a look
at Struct or define a class that encapsulates your data.

Regards,
Marcus

···

Am 26.02.2016 um 16:52 schrieb A Berger:

Hello
how.can I.build a uniun (different variables/types at the same memory
location) ?
I didnt find any class having that predefined?
Berg