Skip to content

Instantly share code, notes, and snippets.

@fponticelli
Last active August 29, 2015 14:02
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 fponticelli/ea2c106923e1710724eb to your computer and use it in GitHub Desktop.
Save fponticelli/ea2c106923e1710724eb to your computer and use it in GitHub Desktop.
new haxe?
class Sample<T>(value : T) {
trace(value)
def toString = value
}
class Sample<T> {
public function new(value : T) {
this.value = value;
trace(value);
}
public function toString() {
return value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment