- Interface of Module Dialog

From: [at]} <Gérard>
Date: Wed, 20 Jun 2007 20:14:21 +0200

----boundary-LibPST-iamunique-2086564093_-_-
Content-type: text/plain

Gerhard.Marent{([at]})nowhere.xy
> Hello everybody
>
> When reading the code of Module Dialog,
> I noticed something that I do not understand.
>
> There is an exported procedure
>
> PROCEDURE SetGetHook*(h: GetHook);
>
> that doesn't apear in the interface and it is
> possible to call that procedure from outside.
>
> Can someone explain that behaviour?
>
> Gerhard Marent
>
Hello Gerhard,

Oberon microsystems explained in a mail of 2006 that:

        types which extend Kernel.Hook are a configuration mechanism
        intended to be used only by framework programmers. "Normal"
        BlackBox clients should neither use nor see hooks. That's why
        DevBrowser masks them out.

Andrew Thomas added:

        Marc at OMsystems has solved the puzzle. Look at the source code
        for the Browser, in particular the procedure IsHook. Looking
        father down to the Browser procedure you see that you can edit
        the opts string so that the Hook shows up.

and Dominik Gruntz showed that:

        Btw, they are shown if you use the &-Option of DevBrowser, e.g.
        "DevBrowser.ShowInterface('c&')"

Regards.

Gérard

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy

----boundary-LibPST-iamunique-2086564093_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBHZXJoYXJkLk1hcmVudEB2a3cu
YXQg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wYXIN
CkFuZHJldyBUaG9tYXMgYWRkZWQ6XHBhcg0KXHBhcg0KXHRhYiBNYXJjIGF0IE9Nc3lzdGVtcyBo
YXMgc29sdmVkIHRoZSBwdXp6bGUuIExvb2sgYXQgdGhlIHNvdXJjZSBjb2RlXHBhcg0KXHRhYiBm
b3IgdGhlIEJyb3dzZXIsIGluIHBhcnRpY3VsYXIgdGhlIHByb2NlZHVyZSBJc0hvb2suIExvb2tp
bmdccGFyDQpcdGFiIGZhdGhlciBkb3duIHRvIHRoZSBCcm93c2VyIHByb2NlZHVyZSB5b3Ugc2Vl
IHRoYXQgeW91IGNhbiBlZGl0XHBhcg0KXHRhYiB0aGUgb3B0cyBzdHJpbmcgc28gdGhhdCB0aGUg
SG9vayBzaG93cyB1cC5ccGFyDQpccGFyDQphbmQgRG9taW5payBHcnVudHogc2hvd2VkIHRoYXQ6
XHBhcg0KXHBhcg0KXHRhYiBCdHcsIHRoZXkgYXJlIHNob3duIGlmIHlvdSB1c2UgdGhlICYtT3B0
aW9uIG9mIERldkJyb3dzZXIsIGUuZy5ccGFyDQpcdGFiICJEZXZCcm93c2VyLlNob3dJbnRlcmZh
Y2UoJ2MmJykiXHBhcg0KXHBhcg0KUmVnYXJkcy5ccGFyDQpccGFyDQpHXCdlOXJhcmRccGFyDQpc
cGFyDQotLS0gQmxhY2tCb3hccGFyDQotLS0gc2VuZCBzdWJqZWN0IEhFTFAgb3IgVU5TVUJTQ1JJ
QkUgdG8gYmxhY2tib3hAb2Jlcm9uLmNoXHBhcg0KfQ==


----boundary-LibPST-iamunique-2086564093_-_---
Received on Wed Jun 20 2007 - 20:14:21 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:31:31 UTC