swarm-support
[Top][All Lists]
Advanced

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

Re: Function as an argument


From: Akiko Ogawa - RS/GIS lab
Subject: Re: Function as an argument
Date: Tue, 4 Apr 2000 16:57:08 -0600 (MDT)

Marcus,

>AO> 2) Can a selecter be a function that returns a value, as in
>AO> M(getSomething), where, -(int) getSomething?
>
>Strictly speaking, no.  It has to be a an `id'-like thing (typically
>a 32 bit value).  `int' will work most places.

So you are saying M(getAnObject) is OK, where, -(id) getAnObject? 
In my previous example, can I do this:

  id myEgg = [obj perform: sel with: egg];
  
if the passed function that is represented by sel returns an id??

Thank you.
Akiko
-------------------------------------------
Akiko Ogawa
Forest Resources Department
Utah State University
address@hidden
-------------------------------------------




                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

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