-
-
Save nddrylliog/378437 to your computer and use it in GitHub Desktop.
Revisions
-
nddrylliog revised this gist
Apr 25, 2010 . 2 changed files with 5 additions and 8 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 @@ -1,6 +0,0 @@ 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 @@ -1,6 +1,9 @@ bar: unmangled func (t: C) { "Hey, it's a %s" format(t class name) println() } C: class { foo: extern(bar) func } C new() foo() -
fredreichbier created this gist
Apr 25, 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,6 @@ rock_tmp/./extern.c: In function 'bar': rock_tmp/./extern.c:20: error: 'extern__CClass' has no member named 'foo' rock_tmp/./extern.c: At top level: rock_tmp/./extern.c:69: error: redefinition of 'bar' rock_tmp/./extern.c:19: note: previous definition of 'bar' was here C compiler failed, aborting compilation process 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,6 @@ bar: unmangled func (t: C) { } C: class { foo: extern(bar) func }