RE: Something is missing in Component Pascal
----boundary-LibPST-iamunique-1769054787_-_-
Content-type: text/plain
Dear Wojtek,
Having read your recent contributions to the BlackBox mailinglist I would
like to emphasize some important points:
1) Turning stack-allocated record objects into pointers that can be stored
in heap objects is outright live-threatening. Next time the garbage
collector runs, BlackBox will most likely vanish from your screen, because
stack objects are collected upon return of the containing procedure. That's
why the language does not support this.
2) Your question indicates that you keep walking deeper and deeper into a
maze that has no exit and that you should not have entered in the first
place. To store the data you are displaying in your dialog the example
posted by Marc Matin is absolutely the right approach here, only in your
case not all record fields are simple types and you will have to write a few
lines of code to traverse the tree the tree control binds to.
3) To store data you can use Stores.Writer and Reader (i.e. the Rider
concept) without having to create a Stores.Store. Just process the record
field by field and call the appropriate rider methods. On a first glimpse,
this field-wise writing may seem inconvenient, but when using a Stores.Store
you'll have to do exactly the same thing just at a different place: in the
Externalize method.
Regards,
Wolfgang,
Oberon microsystems, Inc.
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
owner-blackbox{([at]})nowhere.xy
Current posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-1769054787_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaG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