COCAO SUCKS

12 views
Skip to first unread message

Craig Hockenberry

unread,
Sep 5, 2010, 2:51:15 PM9/5/10
to cocoa-unbound
DASH PAREN VOID PAREN INIT CURLYBRACE
IF PAREN SELF EQUALS BRACKET SUPER INIT BRACKET PAREN CURLYBRACE
IM_AWESOME EQUALS YES
CURLYBRACE CURLYBRACE

DOESNT COMPILE PLEASE ADVICE

Jim Dovey

unread,
Sep 5, 2010, 2:54:15 PM9/5/10
to cocoa-...@googlegroups.com
On 2010-09-05, at 2:51 PM, Craig Hockenberry wrote:

> DASH PAREN VOID PAREN INIT CURLYBRACE
> IF PAREN SELF EQUALS BRACKET SUPER INIT BRACKET PAREN CURLYBRACE

IF PAREN SELF DOT HAS_HOOKERS_AND_BLOW CURLYBRACE


> IM_AWESOME EQUALS YES
CURLYBRACE
> CURLYBRACE CURLYBRACE
>
> DOESNT COMPILE PLEASE ADVICE

THERE FIXED THAT FOR YOU

Guy English

unread,
Sep 5, 2010, 2:57:17 PM9/5/10
to cocoa-...@googlegroups.com
> DOESNT COMPILE PLEASE ADVICE

You’re missing an IDENTIFICATION DIVISION and your code should be after a PROCEDURE DIVISION. Also don’t forget to indent 8 characters.

Rich

unread,
Sep 5, 2010, 2:58:59 PM9/5/10
to cocoa-unbound
Ok... let me see if I can decipher chock-pseudo code...

- (void) init
{
if (self == [super init])
{
im_awesome = YES;
}
}

I'm presuming you declared you're im_awesome variable in the header?
More importantly, you should be returning self...

That is all...


Justin Spahr-Summers

unread,
Sep 5, 2010, 3:05:59 PM9/5/10
to cocoa-...@googlegroups.com
2010/9/5 Craig Hockenberry <craig.ho...@gmail.com>:

People are still writing new COBOL code?

--
Justin Spahr-Summers

Alastair Houghton

unread,
Sep 5, 2010, 3:13:00 PM9/5/10
to cocoa-...@googlegroups.com

I think you may have to disengage chock-lock first... :-D

Kind regards,

Alastair

--
http://alastairs-place.net


Jim Dovey

unread,
Sep 5, 2010, 3:15:02 PM9/5/10
to cocoa-...@googlegroups.com
On 2010-09-05, at 3:13 PM, Alastair Houghton wrote:

> On 5 Sep 2010, at 19:51, Craig Hockenberry wrote:
>
>> DASH PAREN VOID PAREN INIT CURLYBRACE
>> IF PAREN SELF EQUALS BRACKET SUPER INIT BRACKET PAREN CURLYBRACE
>> IM_AWESOME EQUALS YES
>> CURLYBRACE CURLYBRACE
>>
>> DOESNT COMPILE PLEASE ADVICE
>
> I think you may have to disengage chock-lock first... :-D

NO CHOCKLOCK EQUALS NO AWESOME GET WITH THE PROGRAMME

[:oP
-Jim

Jens Ayton

unread,
Sep 5, 2010, 3:47:54 PM9/5/10
to cocoa-...@googlegroups.com

YOU FORGOT YOR SEMI COLONS ALSO INIT DOESNT RETURN VOID OTHERWISE TEH CALLER WONT NO HOW AWESOME YOU AR.

INTERFACE CHOCKENBERRY COLON NSOBJECT
OCURLYBRACE
BOOL IM_AWESOME SEMICOLON
CCURLYBRACE
END


IMPLEMENTATION CHOCKENBERRY

DASH OPAREN ID CPAREN INIT OCURLYBRACE
IF OPAREN SELF EQUALS OBRACKET SUPER INIT CBRACKET CPAREN OCURLYBRACE
IM_AWESOME EQUALS YES SEMICOLON
CCURLYBRACE
RETURN SELF SEMICOLON
CCURLYBRACE

END


http://jens.ayton.se/code/SYNTAX_HELPER.h

--
Jens Ayton

Message has been deleted

Eric Scouten

unread,
Sep 5, 2010, 5:20:25 PM9/5/10
to cocoa-...@googlegroups.com, cocoa-...@googlegroups.com
It's teh new Objective-Cobol.

Sent from my iPad

Message has been deleted

Craig Hockenberry

unread,
Sep 6, 2010, 1:48:53 PM9/6/10
to cocoa-unbound
YOU NORWEGAINS ARE PRETTY SMART

Robert McGovern

unread,
Sep 6, 2010, 6:05:22 PM9/6/10
to cocoa-...@googlegroups.com
On Sun, Sep 5, 2010 at 9:05 PM, Justin Spahr-Summers <justin.sp...@gmail.com> wrote:

People are still writing new COBOL code?


No Justin it wasn't indented enough. Can't remember now, was it variables on 7 spaces and code on 12?

Rob
--
Personal responsibility is battling extinction.

Stuart Carnie

unread,
Sep 9, 2010, 11:59:25 PM9/9/10
to cocoa-unbound
You interpreted SELF EQUALS BRACKET... as SELF EQUALS EQUALS BRACKET:

- (void)init {
if (self = [super init]) {
im_awesome = YES;
}
}


..there are a could of problems with the code, given it's an init
method.

Cheers,

Stu
Reply all
Reply to author
Forward
0 new messages