× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Prototyping printf()
  • From: Jim Langston <jimlangston@xxxxxxxxxxxxxxxx>
  • Date: Fri, 06 Oct 2000 16:55:06 -0700
  • Organization: Pacer International

I can think of absolutely no valid reason to store a pointer to a file.
When data is in a file it is assumed it is for storage.  The next time
you read the file there is no guarantee that the same data is going to
be in the location pointed to by the pointer!

Pointers point to some spot in memory, although it doesn't necessarily
have to be ROM since the AS/400 used dynamic memory.  Tomorrow I can
almost guarantee you that almost nothing will be in the same memory 
location (the exception being the kernel source which probably will be).
So writing a pointer to file for later use is worthless and downright
dangerous.

Regards,

Jim Langston

"Eric N. Wilson" wrote:
> 
> Hello Ken,
> 
> > That would get around your problem, but ... if pointers could be defined in
> > database files, that would mean that data management would have to actually
> > be able to store pointers in a database file and maintain the tag bits.  I
> > don't recall enough off the top of my head about storing pointers on disk to
> > know if this is feasible.
> 
> Yes I agree that using real pointers in database files is problematic
> at best... A true OODB we are not talking about here... even most of
> those do remapping to some intrinsic data type like a long or
> something else and assign an unique value to the object and reference
> it via this handle.
> 
> But if there were some other neat new way to externally describe
> structures (namely so I can use the Prefix keyword) then Whooo hooo
> life would be just ducky!
> 
> This is just a play project anyway... something to keep my mind from
> rusting too bad :-) It has been interesting play though :-)
+---
| 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 thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.