From: Mathieu Bouchard Date: 2006-08-30T15:06:08+09:00 Subject: Re: Legal operator symbols --8323328-526052682-1156917837=:5897 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-526052682-1156917837=:5897" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-526052682-1156917837=:5897 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 28 Aug 2006, Nikolai Weibull wrote: > Why are :>, :>=3D, :<=3D, :< fine as symbols, while :=3D isn't? Because the parser is designed in a way that the colon prefix without=20 double-quotes accepts only characters that form a valid method name as=20 accepted by the def keyword. The rest of Ruby doesn't have this=20 limitation. To circumvent this, say "=3D".intern or the more recent syntax= =20 :"=3D" _ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - t=E9l:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montr=E9al QC Canada --8323328-526052682-1156917837=:5897-- --8323328-526052682-1156917837=:5897--