4 ms·
I may be wrong, but think a lot of it is undefined behavior. Interpreter may choose to recycle objects or it may not. In case of integers, low enough number in
by g42gregory 1y ago
I may be wrong, but think a lot of it is undefined behavior. Interpreter may choose to recycle objects or it may not. In case of integers, low enough number in different parts of the program, will be represented by the same object. But if the integer is high enough, different objects will be created. That’s my understanding, but I could be wrong.
- zahlman 1y agoThe behaviour is implementation-specified or unspecified, but not undefined. You will not unleash https://catb.org/jargon/html/N/nasal-demons.html https://catb.org/jargon/html/N/nasal-demons.html this way.