× 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.



Ugh. I've just had to rip data structures out of a whole bunch of programs. It's not that I'm against the idea in and of itself, it's just that it's not a wholesale rip and replace, for several reasons. Here are two of the biggest:

1. You need different data structures for the input and output.

2. You need different data structures when you're reading from two different logicals.

Yes, you can get around these with clever use of basing pointers. But the older I get the more I absolutely HATE "clever" programming. It almost always introduces a subtle bug somewhere down the line either as conditions change or as someone who doesn't quite appreciate the subtle nuances of that code has to maintain it.

And yes, I understand that you can also get around this with EVAL-CORR. But really, is that what we're striving for? Moving the data ourselves rather than letting the compiler do it? It gets even more frustrating when you see an UPDATE with the %fields and you end up having to repeat the qualifying data structure name before every field name.

As always, use the technique when appropriate.

Joe


As we are encouraged more and more to use data structures for IO, this
can become a more-used technique, I think.

Vern


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.