• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Java and Objective-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java and Objective-C


  • Subject: Re: Java and Objective-C
  • From: "Michael Ash" <email@hidden>
  • Date: Sun, 8 Jun 2008 06:43:15 -0400

On Sun, Jun 8, 2008 at 1:48 AM, Peter Duniho <email@hidden> wrote:
> So, when you write "true proxying of method invocations", what does that
> mean, exactly?

Distributed Objects is probably the best example in terms of
real-world use of a technique which is difficult in stricter
languages. Consider:

Foo *obj = [connection rootProxy];
[obj doSomethingWithArgument:arg];

This transparently proxies the method invocation off to another
machine. I seem to recall from the last time that this is possible to
implement in C# but not Java, but I could be wrong.

And as I pointed out in the last discussion, a key point is not only
whether this sort of thing is possible but whether it is easy. Message
capturing and forwarding is fairly trivial in ObjC, which makes it
practical for the end programmer to write his own code which takes
advantage of it, rather than using system APIs which use it. It's very
nice to be able to compose two objects together with forwarding using
only a couple of lines of code, or to capture an invocation for later
use with a similar amount of code.

Mike
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Java and Objective-C
      • From: Denis Bohm <email@hidden>
    • Re: Java and Objective-C
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >Re: Java and Objective-C (From: Peter Duniho <email@hidden>)

  • Prev by Date: Re: 3rd Party Nonsense (was Re: Regular Expressions?)
  • Next by Date: Re: Java and Objective-C
  • Previous by thread: Re: Java and Objective-C
  • Next by thread: Re: Java and Objective-C
  • Index(es):
    • Date
    • Thread