Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add references to Objective-J @reference? #88

Closed
cappuccino opened this Issue · 4 comments

4 participants

@cappuccino

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.

original LH ticket

This ticket has 0 attachment(s).

@aparajita
Owner

This will have to wait for Objective-J 2, in the meantime there are macros that accomplish this.

@cappbot
Collaborator

Milestone: 1.0. Labels: #accepted, #needs-patch, Objective-J, feature. What's next? This issue needs a volunteer to write and submit code to address it.

@ahankinson

Woohoo! Another oldie gone.

Fixed in 34faf36 and subsequent commits.

+#fixed
milestone=0.9.7

@cappbot
Collaborator

Milestone: 0.9.7. Labels: #fixed, Objective-J, feature. What's next? This issue is considered successfully resolved.

@cappbot cappbot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.