[#927] UnboundMethod#to_proc — Dave Thomas <dave@...>

I'm wondering what I can do with a Proc generated by

17 messages 2003/04/06

Re: 0 prefix in floats ?

From: Chris Ross <chris@...>
Date: 2003-04-24 06:24:02 UTC
List: ruby-core #986
I suspect it's to remove ambiguity so the .5 can't be confused by
the programmer or interpreter as a method call on the previous object.
[Although I could, and probably am, wrong].

Regards,

Chris

On Thursday, April 24, 2003, at 07:02 AM, Mathieu Bouchard wrote:
>
> .5
> #<SyntaxError: (eval):1: compile error
> (eval):1: no .<digit> floating literal anymore; put 0 before dot
> (eval):1: parse error>
>         /home/matju/bin/iruby:57
>
> May I know what happened with floats written like ".5" ? why is that
> syntax no longer supported ?
>
> ________________________________________________________________
> Mathieu Bouchard                       http://artengine.ca/matju
>
>
>
--
Chris Ross
  --> home: chris@darkrock.co.uk    | http://www.darkrock.co.uk
  --> university: ctr@cs.bham.ac.uk | http://www.cs.bham.ac.uk/~ctr/
  --> ferite programming language   | http://www.ferite.org


In This Thread

Prev Next