Re: Object-oriented programming in standard ANSI C
- From: Laurent Deniau <laurent.deniau@xxxxxxx>
- Date: Fri, 17 Nov 2006 16:53:47 +0100
Laurent Deniau wrote:
defmethod(OBJ, gPutAtIdx, (Array, Object), (int)idx)
{
if (0 > idx && idx >= self1->len) {
useclass(ExOutOfBound);
gThrow(gNewWithStr(ExOutOfBound, "invalid array index"));
}
if (self1->data[idx] != self2) {
if (self1->data[idx] != NIL)
gRelease(self1->data[idx]);
self1->data[idx] = gRetain(self2);
}
retmethod(self1);
}
Sorry this closing brace must be replaced by 'endmethod' and its corresponding openning brace must be removed.
a+, ld.
.
- References:
- Object-oriented programming in standard ANSI C
- From: Thierry Chappuis
- Re: Object-oriented programming in standard ANSI C
- From: Roland Pibinger
- Re: Object-oriented programming in standard ANSI C
- From: Thierry Chappuis
- Re: Object-oriented programming in standard ANSI C
- From: Roland Pibinger
- Re: Object-oriented programming in standard ANSI C
- From: Laurent Deniau
- Re: Object-oriented programming in standard ANSI C
- From: Roland Pibinger
- Re: Object-oriented programming in standard ANSI C
- From: Laurent Deniau
- Object-oriented programming in standard ANSI C
- Prev by Date: Re: Object-oriented programming in standard ANSI C
- Next by Date: fscanf issues, please help.
- Previous by thread: Re: Object-oriented programming in standard ANSI C
- Next by thread: Re: Object-oriented programming in standard ANSI C
- Index(es):