Re: C to Java Byte Code
Paul Lutus <nospam@nosite. zzz> writes:
[color=blue]
> Mohd Hanafiah Abdullah wrote:
>[color=green]
> > In article <10nqamhfej8qqf 5@corp.supernew s.com>,
> > Paul Lutus <nospam@nosite. zzz> wrote:[/color][/color]
[color=blue][color=green]
> > Excuse me, but unions are supported in the product being discussed.[/color]
>
> Post the byte code in which a Java float is united with a Java
> integer. Or retract your statement.
>
> Unions are not supported in your product. A C union is a joining of
> two or more distinct variable types with simultaneous access to
> both, e.g. it is an example of a memory block shared between data
> types. This is not allowed in Java because of strong typing.[/color]
It's not allowed in C/C++ either. Accessing a union member as anything
other than what it was last written as is undefined.
Joe
--
Nothing cures like time and love
- Laura Nyro
Paul Lutus <nospam@nosite. zzz> writes:
[color=blue]
> Mohd Hanafiah Abdullah wrote:
>[color=green]
> > In article <10nqamhfej8qqf 5@corp.supernew s.com>,
> > Paul Lutus <nospam@nosite. zzz> wrote:[/color][/color]
[color=blue][color=green]
> > Excuse me, but unions are supported in the product being discussed.[/color]
>
> Post the byte code in which a Java float is united with a Java
> integer. Or retract your statement.
>
> Unions are not supported in your product. A C union is a joining of
> two or more distinct variable types with simultaneous access to
> both, e.g. it is an example of a memory block shared between data
> types. This is not allowed in Java because of strong typing.[/color]
It's not allowed in C/C++ either. Accessing a union member as anything
other than what it was last written as is undefined.
Joe
--
Nothing cures like time and love
- Laura Nyro
Comment