INTERNAL.field question

2 messages Options
Embed this post
Permalink
Jimmy Johnson

INTERNAL.field question

Reply Threaded More More options
Print post
Permalink
Why is the generating type of the resulting object of a call to
  {INTERNAL}.field (i: INTEGER; object: ANY): detachable ANY
an INTERGER_REF when the field is of type INTEGER?

I tried to duplicate this with:

to_detachable (a_value: INTEGER): detachable ANY
  do
    Result := a_value
  end

but the generating type of the result is INTEGER not INTEGER_REF.


BTW, I though the _REF types were going to go away at some point?

jjj




Emmanuel Stapf

RE: INTERNAL.field question

Reply Threaded More More options
Print post
Permalink
> Why is the generating type of the resulting object of a call to
>   {INTERNAL}.field (i: INTEGER; object: ANY): detachable ANY
> an INTERGER_REF when the field is of type INTEGER?

There is indeed a mismatch and you should be getting INTEGER, not INTEGER_REF.
This will be fixed in the next release.

Thanks,
Manu


------------------------------------------------------------------------  
Eiffel Software
805-685-1006
http://www.eiffel.com       
Customer support: http://support.eiffel.com       
User group: http://groups.eiffel.com/join       
------------------------------------------------------------------------