Skip to content

Instantly share code, notes, and snippets.

@nddrylliog
Created September 2, 2010 23:12
Show Gist options
  • Save nddrylliog/563131 to your computer and use it in GitHub Desktop.
Save nddrylliog/563131 to your computer and use it in GitHub Desktop.
TextCont: class {
value: String
}
Test: class {
_store: TextCont
something: func { something(_store&) }
something: func ~withCont(container: TextCont@) {
container = TextCont new()
container value = "cheese"
container value println()
}
toString: func() -> String {
return _store value
}
}
t := Test new()
t something()
t toString() println()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment