swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Message forwarding...


From: Barry McMullin
Subject: Re: Message forwarding...
Date: Wed, 19 Feb 1997 15:17:54 +0000

At 21:25 14/02/97 -0500, Wojtek Kopczuk <address@hidden> wrote:
>I haven't seen an answer to your question yet so here it is:
>you can implement message forwarding in GNU ObjC. 
>Having following method does a trick:
>
>-forward: (SEL) aSelector : (arglist_t) arguments {
>  return [ obj performv: aSelector : arguments];
>}
>
>where 'obj' is an object to which method should be forwarded.

I tried it and it works.  It's not a very severe test because
my forwarded messages all have trivial interfaces (at most an
int argument, and an int return), but it does prove the principle.

Thanks!

Barry.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| Barry McMullin, Autonomous Systems Group,  |    address@hidden |
| School of Electronic Engineering,          |  Voice: +353-1-704-5432 |
| Dublin City University, Dublin 9, IRELAND. |  FAX:   +353-1-704-5508 |
| http://www.eeng.dcu.ie/~mcmullin/home.html |                         |
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



reply via email to

[Prev in Thread] Current Thread [Next in Thread]