RE: dumb C question (part 2)

new topic     » topic index » view thread      » older message » newer message

> -----Original Message-----
> From: Euman [mailto:euman at bellsouth.net]
> 
> // in C
>  }
>   else if(playOK && (code == HC_SKIP)) curmess++;
> 
> -- in Euphoria
> 
> elsif and_bits(playOK , code) = HC_SKIP then
>        curmess += 1

I read this as:

elsif and_bits( playOK, code=HC_SKIP ) then
	curmess +=1

> 
> // in C
> 
> s = !s;
> 
> -- in Euphoria
> 
> would it be:
> 
> if not s then 
> or 
> s = not s (hehe just joking)

You shouldn't joke. :)  The correct translation would be:

s = not s
which is the same as
s = ( s = 0 )

Matt Lewis

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu