----boundary-LibPST-iamunique-1887756778_-_-
Content-type: text/plain
skulski{([at]})nowhere.xy
>>>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.
>
>
You're right. It is not only discouraged, it is impossible, because if
NEW(o) is necessary, then o is a pointer. And o.Init therefore would be
undefined and lead to a trap (NIL referenced).
Rene
--------------------------------------------
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-1887756778_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZj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