[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: false || not(true

Yukihiro Matsumoto

7/5/2008 6:44:00 AM

Hi,

In message "Re: false || not(true)"
on Sat, 5 Jul 2008 10:21:29 +0900, SHINDO Motoaki <motoakira@mac.com> writes:

|I read 'bout a problem: (false || not(true))
|in a place, and made a little considerations.

"||" is an operator that takes "expressions" for both operands, so that
you should provide parentheses around not, which is a "command". In
short, you should write

c == false || (not true)

instead of

c == false || not true

|Shindo Motoaki (Motoakira)
|
|21, Higashi-Kurayoshi machi
|Yonago City, Tottori Pref.

Wow, you lived only 300m away from my parents' house.

matz.

1 Answer

SHINDO Motoaki

7/5/2008 10:16:00 AM

0

Thank you >Matz-san=E2=80=A6

On 2008/07/05, at 15:44, Yukihiro Matsumoto wrote:

> which is a "command".

with it, you mean 'not' is not a Function?

http://www.ruby-lang.org/ja/man/html/_B1E9BBBBBBD...
seems tell 'not' is an Operator=E2=80=A6
I'm not sure=E2=80=A6

> In short, you should write
>
> c =3D=3D false || (not true)

with the lines, my guess is to do with Priorities among Operators=E2=80=A6=

I'm not sure=E2=80=A6(^_^=E3=82=9E

> Wow, you lived only 300m away from my parents' house.


I should take it serious. Then,
('matz' + ('motoakira' - 'akira')) eval=E2=80=A6(^_^=E3=82=9E

objectively yours=E2=80=A6
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
I'm the One of Sad&Mad.

Shindo Motoakira
<motoakira@mac.com>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D