----boundary-LibPST-iamunique-1946156671_-_-
Content-type: text/plain
Hello
There is indeed a missing precondition in the documentation of Files. The
only documented precondition is that "loc" must not be NIL, but in reality
it is also required that "name" is a non-empty string. We will update the
documentation and provide a patch containing the new documentation on our
server (
http://www.oberon.ch/).
For your program to execute correctly you need to check that the variable
you pass as "name" parameter isn't empty before you call Files.dir.Old.
Regards
Bengt Johansson, Oberon microsystems Inc.
> -----Original Message-----
> From: Juan Antonio Ortega [mailto:amortega{([at]})nowhere.xy> Sent: Mittwoch, 6. Februar 2002 14:46
> To: blackbox{([at]})nowhere.xy> Subject: Files
>
>
> Dear BB users,
>
> I have compiled and executed the following program, but I thought that "f"
> would be NIL because "" is an invalid filename. However, the
> program doesn't
> work and appears a trap (21). Why????
>
> Best regards, Juan Antonio
>
> MODULE thing;
>
> IMPORT Files;
>
> PROCEDURE main*;
> VAR
> f: Files.File;
> BEGIN
> f:=Files.dir.Old(Files.dir.This(""), "", TRUE);
> END main;
>
> END thing.
>
> --------------------------------------------
>
> 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.
>
--------------------------------------------
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-1946156671_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIFxwYXINCkhlbGxvXHBhcg0KXHBhcg0KVGhlcmUg
aXMgaW5kZWVkIGEgbWlzc2luZyBwcmVjb25kaXRpb24gaW4gdGhlIGRvY3VtZW50YXRpb24gb2Yg
RmlsZXMuIFRoZVxwYXINCm9ubHkgZG9jdW1lbnRlZCBwcmVjb25kaXRpb24gaXMgdGhhdCAibG9j
IiBtdXN0IG5vdCBiZSBOSUwsIGJ1dCBpbiByZWFsaXR5XHBhcg0KaXQgaXMgYWxzbyByZXF1aXJl
ZCB0aGF0ICJuYW1lIiBpcyBhIG5vbi1lbXB0eSBzdHJpbmcuIFdlIHdpbGwgdXBkYXRlIHRoZVxw
YXINCmRvY3VtZW50YXRpb24gYW5kIHByb3ZpZGUgYSBwYXRjaCBjb250YWluaW5nIHRoZSBuZXcg
ZG9jdW1lbnRhdGlvbiBvbiBvdXJccGFyDQpzZXJ2ZXIgKGh0dHA6Ly93d3cub2Jlcm9uLmNoLyku
XHBhcg0KXHBhcg0KRm9yIHlvdXIgcHJvZ3JhbSB0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