Re: Procedure types

From: [at]} <Wojtek>
Date: Sun, 21 Nov 2004 09:12:22 -0500 (EST)

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

On Sun, 21 Nov 2004, H. v. L. wrote:

> My question is:
> Are procedure types really a problem for the run time system?
>
> If I am right, BlackBox maintains a list of loaded modules anyway and
> those modules not being top level modules, which therefore cannot be
> unloaded, are dynamically marked. So the run time system checks whether a
> module contains a reference - in this case via inheritance - to another
> module.
> Actually I don't see any difference between checking an inheritance
> relation and checking a pointer to a foreign procedure, the list of
> references does exist, so it only must be enlarged by procedure
> references!?

Inheritance references are static, while procedure variables are assigned
at run time. Furthermore, even the number of procedure variables
in a given module may not be known since procedure variables can be
created dynamically. For example, imagine a type

prVar = POINTER TO RECORD pv: PROCEDURE; next: prVar END;

One can thus create a linked list of records, each one containing
a reference to a procedure. In order to make unloading safe one needs
to maintain those references versus unloading of modules that implement
the "pv" fields.

I am sure one can invent even more vicious scenarios. My question still
stands whether all this is safe in the current version of the run time
system, and if not then whether it can be made safe. I am not yet buing
into Fyodor arguments. Perhaps this problem has been solved already
by the c.s. community. I simply do not know. I am only a user.

W.

--------------------------------------------

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-720638553_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcm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3duZXItYmxhY2tib3hAb2Jlcm9uLmNoXHBhcg0KXHBhcg0KQ3VycmVudCBw
b3N0aW5nIHBvbGljeTpccGFyDQpccGFyDQphKSBUbyBwb3N0IHlvdSBzaG91bGQgdXNlIHRoZSBz
YW1lIGFkZHJlc3MgYnkgd2hpY2ggeW91IGFyZSBzdWJzY3JpYmVkIHRvIHRoZSBtYWlsaW5nIGxp
c3QuIFRoYXQgd2F5LCB0aGUgbGlzdCBzZXJ2ZXIgd2lsbCByZWNvZ25pemUgeW91IGFzIHN1YnNj
cmliZXIgYW5kIGZvcndhcmQgeW91ciBwb3N0aW5nIGltbWVkaWF0ZWx5LCB3aXRob3V0IGNyZWF0
aW5nIGFueSBvdmVyaGVhZC5ccGFyDQpccGFyDQpiKSBJZiwgZm9yIHNvbWUgcmVhc29uLCB5b3Ug
Y2Fubm90IHBvc3QgZnJvbSB0aGUgYWRkcmVzcywgYnkgd2hpY2ggeW91IGFyZSBzdWJzY3JpYmVk
LCB5b3VyIG1lc3NhZ2Ugd2lsbCBiZSBtb2RlcmF0ZWQgdG8gYXZvaWQgc3BhbS4gUGxlYXNlIHVu
ZGVyc3RhbmQgdGhhdCBtb2RlcmF0aW9uIHdpbGwgb2Z0ZW4gY2F1c2Ugc29tZSBkZWxheSwgaW4g
cGFydGljdWxhciBvdmVyIHdlZWtlbmRzIG9yIGhvbHlkYXl9fQBUUABza3U=


----boundary-LibPST-iamunique-720638553_-_---
Received on Sun Nov 21 2004 - 15:12:22 UTC

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