[email protected] writes:
Running it reveals the address of y, or at least the 32 least
significant bits.
Being able to find the addresses of memory objects is considered a
feature in C and it's used all the time in idiomatic C. In retrospect,
other languages have usually-good ways to do without that feature, such
as references, access types, etc. I think if you are writing an OS or standalone embedded program in Ada though, it's not unusual to have some
low level parts of it in assembly language, that reach into the access
types and do stuff with the addresses.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)