on1 construct

Kim Fabricius Storm storm at diku.UUCP
Fri Nov 9 08:53:49 AEST 1984


[dette er en test]

>From: jacob at cadvax (Jacobo Bulaevsky) <124 at cadvax> 2-Nov-84 03:22:23
>
> One contruct that I've always wanted to have is:
> 
> function ()
> {
>     on1  {
> 	bla, bla, bla...
>     };
> 
>     etc...
> }

Try one of these:

#define on1					\
	static char FIRST_CALL = 1;		\
	if (FIRST_CALL && FIRST_CALL--)


#define on1					\
	static char FIRST_CALL = 1;		\
	for (; FIRST_CALL; FIRST_CALL = 0)
	
---------------------
[Datalogy, what the H... is that?]

Kim F. Storm @ Institute of Datalogy, University of Copenhagen, Denmark
UUCP: ..mcvax!diku!storm



More information about the Comp.lang.c mailing list