|
Hi Rob,
Why is RESET not allowed for a DS that is based?
RESET sets the contents of a variable back to the value that it had during the intialization of the program. Since a BASED data structure can't be initialized at that point, there's no way to reset it back to the values that existed at that point.
Which also begs the question: Why is inz not allowed in a based data structure?
Because values have to be stored in memory. If your data structure is BASED, then it has no memory until you point it at something. Therefore, there's no place to store the initial values, because there's no memory associated with them yet.
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.