[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Objective C To Dylan
- To: address@hidden
- Subject: Re: Objective C To Dylan
- From: Bruce Hoult <address@hidden>
- Date: Wed, 30 Oct 2002 03:30:01 -0500
- Organization: none
- References: <200210242041.g9OKfGMR025643@life.ai.mit.edu>
- Sender: "Gregory T. Sullivan" <address@hidden>
- User-agent: MT-NewsWatcher/3.2 (PPC Mac OS X)
- Xref: traf.lcs.mit.edu comp.lang.dylan:14410
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