forum-msg-id-137273-edit

Original date:2022-11-22 14:28:04 Edited by: SDPringle Subject: Re: Switch question - yet again!

ghaberek said...
SDPringle said...

As you know, internally when a destructor is added to an integer the representation of integer objects use a structure, which contains the reference count and store the integer as a double or long double, and a pointer to the destructor. This gets returned.

I thought it was simply promoting the integer to an atom. Is it using some other structure to carry an integer value with a destructor? Where is this defined?

-Greg

 
In my own way, I was describing promotion of an integer to an atom.  Sometimes code counts on passed values being integers and the bug here would seem to be a failure to check whether it is a native integer or promoted integer to atom in the generated C code (and thus the translator part) or the C language back-end part.
Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu