Forum: Ruby Ruby operator precedence

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
1b71af53d40d858c9d7d240c39553343?d=identicon&s=25 Christian Theil Have (Guest)
on 2007-06-06 14:20
(Received via mailing list)

I've been toying a bit with Ruby based DSL in which I use some standard
operators for
my own evil purposes. I have some problems with operator precedence
I can't find any
information about  the predence of binary operators in Ruby. For
instance if
I have

a and b and c <=> d and e

In which order does Ruby evaluate this?

Does any one known of some documentation of operator precedence in Ruby?

Is is possible to change precedence of builtin operators?

Christian Theil Have.
E74a20bb1502e262f6ac53ea91dfd2ff?d=identicon&s=25 Helge A. Gudmundsen (Guest)
on 2007-06-06 14:30
(Received via mailing list)
This topic is locked and can not be replied to.