nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/math: Added bin_not function to Int
[nit.git]
/
examples
/
callback_monkey.nit
diff --git
a/examples/callback_monkey.nit
b/examples/callback_monkey.nit
index
8b04b94
..
6e1ed26
100644
(file)
--- a/
examples/callback_monkey.nit
+++ b/
examples/callback_monkey.nit
@@
-58,7
+58,7
@@
interface MonkeyActionCallable
end
# Defining my object type Monkey, which is, in a low level, a pointer to a C struct (CMonkey)
-extern Monkey `{ CMonkey * `}
+extern class Monkey `{ CMonkey * `}
new `{
CMonkey *monkey = malloc( sizeof(CMonkey) );