RE: Method TYPE?

From: [at]} <support{>
Date: Thu, 15 Aug 2002 19:45:10 +0200

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

René,

we know the wish for a language construct along the lines you sketched.
Recent designs like Microsoft .Net's Delegate mechanism or Eiffel's Agents
provide exactly this. Nevertheless, we'd much rather keep our language small
and simple instead of increasing the number of concepts.

For your problem at hand, we therefore recommend using simple pointer to
record types with methods instead. Services.Actions or Stores.Operations,
for example, are modeled after this pattern. Maybe it helps to study those
examples.

Best regards,
Marc
Oberon microsystems, Inc.



-----Original Message-----
From: René Dorta [mailto:rene{([at]})nowhere.xy
Sent: Donnerstag, 15. August 2002 01:16
To: blackbox{([at]})nowhere.xy
Subject: Method TYPE?


We are used to PROCEDURE TYPEs. They are just nameless procedure
signatures, like: TYPE P = PROCEDURE (VAR t: T; i: INTEGER);
A formal parameter of this type can be replaced by procedure names like
"P1",
where "P1" is: PROCEDURE P1 (VAR t: T; i: INTEGER); BEGIN ... END P1;

What I wonder is about METHOD TYPEs, like:
TYPE M = PROCEDURE (VAR t: T) (i: INTEGER);
A formal parameter of this (hypothetic) TYPE could be replaced by "M1",
where "M1" is a method of class "T", or of an extension of T :
PROCEDURE (VAR t: T) M1 (i: INTEGER), NEW; BEGIN ... END M1;

... It would be so nice in our project about Programming with Threads in
Component Pascal. Is there some suitable alternative for a "Method
TYPE"?.

Regards, René Dorta,
Universidad de Carabobo. Venezuela.

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

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.

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

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

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBSZW5cJ2U5LFxwYXINClxwYXIN
CndlIGtub3cgdGhlIHdpc2ggZm9yIGEgbGFuZ3VhZ2UgY29uc3RydWN0IGFsb25nIHRoZSBsaW5l
cyB5b3Ugc2tldGNoZWQuXHBhcg0KUmVjZW50IGRlc2lnbnMgbGlrZSBNaWNyb3NvZnQgLk5ldCdz
IERlbGVnYXRlIG1lY2hhbmlzbSBvciBFaWZmZWwncyBBZ2VudHNccGFyDQpwcm92aWRlIGV4YWN0
bHkgdGhpcy4gTmV2ZXJ0aGVsZXNzLCB3ZSdkIG11Y2ggcmF0aGVyIGtlZXAgb3VyIGxhbmd1YWdl
IHN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