MAMEWorld >> The Loony Bin
View all threads Index   Flat Mode Flat  

krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM
Re: quick programming question
11/13/15 05:29 AM


> > If Variable NOT == 0
>
> NOT is an unary operator. == (equal to) is a binary operator. Placing the NOT there
> will make it negate the equal to operator. So that specific syntax has to fail in
> every language I know of. Only these constructs would work, be it pseudocode or real
> code in a specific language:
> if variable == not(0)
> if not(variable == 0)

I agree with this.

Additionally you say "It is pseudo code, so it doesn't really conform to a specific language". However, even pseudo code has to have rules and syntax or it's meaningless. What are the rules of this pseudo code language regarding the usage of NOT? Were you given any examples in the book? Assuming you have a book.


GroovyMAME support forum on BYOAC







Entire thread
Subject Posted by Posted on
* quick programming question URherenow 11/12/15 03:29 PM
. * Re: quick programming question Robbbert  11/13/15 02:56 AM
. * Re: quick programming question TriggerFin  11/13/15 08:04 AM
. * Re: quick programming question URherenow  11/13/15 11:22 AM
. * Re: quick programming question Pi  11/12/15 05:36 PM
. * Re: quick programming question krick  11/13/15 05:29 AM
. * Re: quick programming question RATMNL  11/12/15 03:57 PM
. * Re: quick programming question URherenow  11/13/15 01:56 AM

Extra information Permissions
Moderator:  GatKong 
0 registered and 75 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1580