----boundary-LibPST-iamunique-720217822_-_-
Content-type: text/plain
>So is there any harm in adding the missing libraries? Would it be
>difficult? Are they really missing? Or am I missing something? And
>is it just me, or is a comprehensible manual needed?
I agree that it's unneccesarily difficult to do these things, but
it certainly *is* possible -- my programs read from files, write
to files, and use math libraries (check out the modules
"Math", "Files", and "TextMappers"), but I basically I implemented
my own I/O library for my own use... I think the only calls I
use in the supplied libraries are opening/closing files and
reading/writing characters.
For example, here are some handy calls:
v := Views.Old( Views.dontAsk, loc, tempName, conv );
file := Files.dir.New(loc, Files.dontAsk);
file.Register( f.name, f.type, Files.dontAsk, res );
file.reader.ReadChar(ch);
(* convert UNICODE to ASCII *)
b := SHORT(SHORT(ORD(ch))); file.rider.WriteByte(b);
file.form.WriteChar(ch);
But I don't think most people want to implement their
own I/O library from scratch... the libraries provided
by those other Oberon compilers would be a welcome
addition...
Marc
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
----boundary-LibPST-iamunique-720217822_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwID5TbyBpcyB0aGVyZSBhbnkgaGFybSBpbiBhZGRp
bmcgdGhlIG1pc3NpbmcgbGlicmFyaWVzPyAgV291bGQgaXQgYmVccGFyDQo+ZGlmZmljdWx0PyAg
QXJ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