1. RE: dumb C question (part 2)

> -----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 message » categorize

2. RE: dumb C question (part 2)

-------Phoenix-Boundary-07081998-

These messages about how to translate c things to Euphoria are great. I 
sometimes have to dig for long time in other people's code to know how 
something translates and sometimes I don't feel sure or comfortable with 
the things I found so these kind of posts are very useful.

Thanks a lot, 

Fabio

-------------------------------------
Fabio Ramirez R.
Administrador de Redes - CSI
-------------------------------------

-------Phoenix-Boundary-07081998---

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu