mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-06 13:11:20 +00:00
a3a2dd62e3
This is an imperfect revision of history.
34 lines
326 B
R
34 lines
326 B
R
@interface Foo : Object
|
|
{
|
|
integer x;
|
|
}
|
|
-run;
|
|
@end
|
|
|
|
|
|
@implementation Foo
|
|
|
|
+alloc
|
|
{
|
|
print ("+alloc\n");
|
|
return class_create_instance (self);
|
|
}
|
|
|
|
-init
|
|
{
|
|
print ("-init\n");
|
|
return [super init];
|
|
}
|
|
|
|
+ (void) initialize
|
|
{
|
|
print ("+initialize\n");
|
|
}
|
|
|
|
-run
|
|
{
|
|
print ("Hello world\n");
|
|
printf ("%i %p\n", self, &self.x);
|
|
}
|
|
|
|
@end
|