Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Add references to Objective-J @reference?

#16

It would look something like this:

  • (void)myMethod:(ref CPString)aString { aString("new value") }

[Object myMethod:@reference(myString)];

@dereference would allow you to talk to it:

[@dereference(stringReference) length]

Essentially, @reference(X) is a macro that becomes

function (value) { this.set = function(x) { X = x; } this.get() { return x; } }

@dereference(X) is a macro that becomes

X.get()

More or less.

Reported by Francisco Tolmasky · September 5th, 2008 @ 11:51 AM

State: new
Milestone: Later
Assigned to: Francisco Tolmasky Francisco Tolmasky

Activity

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.