|
>> Im really aware that i can't get that info from the pointer itself (a pointer is just a pointer anyway), but i was wondering if using the address of the data could I get the data type somehow. No, you can't. The compiler does not store this information because it does not care. The data type/size information is used by the compiler to determine what code should be generated, it has no value beyond that point. As I and others have pointed out, two completely different pieces of data can have the same address - that address alone could therefore _never_ be enough. That's why operational descriptors were introduced as part of ILE. Unfortunately they were never fully implemented and so we have no mechanism on the system to do what you want, whether we use just the pointer or descriptors. Jon Paris Partner400 www.Partner400.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.