Created
September 2, 2010 23:12
Revisions
-
nddrylliog revised this gist
Sep 2, 2010 . 1 changed file with 2 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,17 +6,12 @@ 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 { -
roja created this gist
Sep 2, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ TextCont: class { value: String } Test: class { _store: TextCont something: func { something(_store) } something: func ~withCont(container: TextCont) { /* container& as Int toString() println() _store& as Int toString() println()*/ container = TextCont new() container value = "cheese" container value println() } toString: func() -> String { return _store value } } t := Test new() t something() t toString() println()