gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with libobjc2


From: bbceler
Subject: Re: Problem with libobjc2
Date: Fri, 25 Jun 2010 15:28:55 -0700 (PDT)

David this is a simple test program. 

hello3.m
===================
#include <objc/Object.h>

@interface Greeter:Object
{
  /* This is left empty on purpose:
  ** Normally instance variables would be declared here,
  ** but these are not used in our example.
  */
}

- (void)greet;

@end

@implementation Greeter

- (void)greet
{
        printf("Hello, World!\n");
}

@end

int main(void)
{
        id myGreeter;
        myGreeter=[Greeter new];

        [myGreeter greet];

        [myGreeter free];
        return 1;
}


-- 
View this message in context: 
http://old.nabble.com/Problem-with-libobjc2-tp28990319p28997166.html
Sent from the GNUstep - Dev mailing list archive at Nabble.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]