Skip to content

Instantly share code, notes, and snippets.

@ecere
Created November 14, 2012 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ecere/4071564 to your computer and use it in GitHub Desktop.
Save ecere/4071564 to your computer and use it in GitHub Desktop.
class MyClass
{
SomeClass someThing { }; /* the storage */
public property SomeClass someThing
{
set { delete someThing; someThing = value; incref someThing; }
get { return someThing; }
};
}
class SomeClass { };
MyClass a { someThing = SomeClass { } };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment