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

Re: Objective C To Dylan



In article <200210242041.g9OKfGMR025643@life.ai.mit.edu>,
 Rob Myers <robmyers@mac.com> wrote:

> 2. Method Naming.
> 
> Objective-C methods use named parameters. For example:
> 
> [myObject param1: varA param2: varB];
> [myObject param1: varC];
> 
> This can be represented well in Dylan using keyword parameters, but 
> since keywords aren't used for choosing methods for dispatch, the above 
> example gives a "multiple definitions" error because the two methods on 
> the same object cannot be told apart.

I imagined that we'd use a single Dylan macro called, say, "objc" for 
all Obj-C calls, and have it concatenate all the keywords together to 
get the name of the actual function to call.  Which is what Obj-C does, 
after all.

-- Bruce