SRL Archive - General

Double Negatives :)


Jason2gs

2007-04-14 18:48:56

Well, I was bored.

Did you know that there are double negatives in SCAR?

Try it, this:


program New;

const
ImCool = True;

begin
if(ImCool)then
Writeln('Im cool!');
end.

Works the same as:


program New;

const
ImCool = True;

begin
if(Not Not ImCool)then
Writeln('Im cool!');
end.

Just a fun little tidbit about SCAR (h)

Mr.Klean

2007-04-14 20:00:22

Heh, thats cool. :)

Freddy1990

2007-04-15 05:44:44

Pretty logical, don't you think?

c0de

2007-04-15 05:57:42

From: Freddy1990
Pretty logical, don't you think?

.

Yakman

2007-04-15 07:57:49

From: Freddy1990
Pretty logical, don't you think?


it would have been embarrasing if it wasnt like that, :garfield:

~alex~

2007-04-15 09:46:05

I guess it makes sense.

Spky

2007-04-16 11:14:34


program New;

const
ImCool = True;

begin
if(Not Not Not ImCool)then
Writeln('Im cool!')
else
Writeln('Nope, I''m not cool..');
end.

Now lets guess the output of this and put it in context shall we :)