|
Eric, Why can't you do this? As long as you ensure that your structures are always aligned on a boundary this works fine. I don't understand exactly what you are trying to accomplish, but in our applications the data and procedures that support them are all dynamically referenced by pointers. Those pointers are stored in user spaces. The underlying process that loads them knows into the user space know when a data element contains a pointer and makes sure it is aligned. The only assumption is that a user space will be aligned. David Morris >>> doulos1@home.com 10/05/00 06:36PM >>> Hello Ken, > I tried what I suggested above and I am extremely surprised. The pointer > remained valid being copied via the overlaying character fields. Well Ken I am glad that I am not loosing what little mind I have left :-) The main reason I went through this exercise was to try to simulate some semblance of object orientation by having externally defined data Structures for the object and then creating instances of them in memory with pointers to other objects contained within... I have some of this working :-) But after Barbara's warning that this is not supported behavior I will have to figure something else out :-( It would be nice to be able to define a pointer data type externally :-) Eric +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.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.