----boundary-LibPST-iamunique-1911328503_-_-
Content-type: text/plain
>> Fyodor said:
>> There is no practical difference between o.Init and Module.Init( o )
>> because in order to perform the latter call one still has to have an
>> object (o) of the correct type.
>>
>>The only difference is the explicit appearance of Module in the second
>> case, which I maintain only adds to clarity of the code.
>>
> Rene said:
> IF "o" is a POINTER type, to perform the former call you need to have
> created "o"; to perform the latter, you don't. I use de second form when
> Module.Init itself is responsible for performing NEW (o), and associated
> initialization, which may be very handy for the client.
Rene:
as far as I remember doing NEW inside Init is discouraged by
H.Moessenboeck and other Oberon-2 gurus. They recommend the sequence
NEW(o); Module.Init(o); Furthermore, pointers should be passed by value
rather than by reference. I am not sure if I can write a treatise
of my own why it should be so. I noticed that each time I disobey
those recommendations I seem to run into trouble later on.
Wojtek
--------------------------------------------
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-1911328503_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxnc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