Question: storing a record to a file
----boundary-LibPST-iamunique-1977745057_-_-
Content-type: text/plain
Hi:
does anybody know how can I store a record to a file?
Not a pointer to record, but a record. Specifically:
TYPE
PersistentTree* = EXTENSIBLE RECORD (Stores.Store)
tree*: Dialog.Tree
END;
VAR
wr: Stores.Writer;
file: Files.File;
mainTree: PersistentTree;
(*the following does not compile*)
wr.ConnectTo (file);
wr.WriteStore (mainTree); (* here pointer is expected*)
So, how can I write the record to the file?
Or, am I looking in the wrong direction? Maybe there is
some method or procedure somewhere which can take a record,
not a pointer?
Or, perhaps there is a conversion procedure somewhere
GetPointerToRecord (rec: ANYREC): ANYPTR;
I know I can use SYSTEM.ADR to get the address of the variable,
but this is the last resort. Any better ideas, anyone?
Please e-mail me, I am still subscribed only for the weekly
digests, I jknow I should change this.
Thank you.
Wojtek Skulski skulski{([at]})nowhere.xy
--------------------------------------------
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-1977745057_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj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