X-Git-Url: http://nitlanguage.org diff --git a/examples/callback_monkey.nit b/examples/callback_monkey.nit index 8b04b94..6e1ed26 100644 --- 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) );