Niggly Issues With Latest Version

Discussion in 'Ruby' started by Jason Hutchens, Jan 12, 2005.

  1. Using the one-click under Windows. Interpreter version 1.8.2.

    Language issues:
    super doesn't behave like super()
    you need to use return explicitly within an ensure
    blah while and blah until don't behave like do...while in C

    Other issues:
    rdoc doesn't like mixing a list of directories with its other arguments
    rubygems breaks require

    Comments?

    - jas.
     
    Jason Hutchens, Jan 12, 2005
    #1
    1. Advertising

  2. Hi,

    In message "Re: Niggly Issues With Latest Version"
    on Wed, 12 Jan 2005 16:46:18 +0900, (Jason Hutchens) writes:

    |Language issues:
    | super doesn't behave like super()

    Can you be more specific? What do you expect for super()?

    | you need to use return explicitly within an ensure
    | blah while and blah until don't behave like do...while in C

    They are supposed to behave so, if I understand you correctly.

    matz.
     
    Yukihiro Matsumoto, Jan 12, 2005
    #2
    1. Advertising

  3. Jason Hutchens wrote:
    > super doesn't behave like super()


    Did they ever? I don't have 1.8.1 handy, but I think "super" has always
    meant "call superclass method with same args" and "super()" has always
    meant "call superclass method with no args".
     
    Joel VanderWerf, Jan 12, 2005
    #3
  4. Jason Hutchens

    Glenn Parker Guest

    Yukihiro Matsumoto wrote:
    > In message "Re: Niggly Issues With Latest Version"
    > on Wed, 12 Jan 2005 16:46:18 +0900, (Jason Hutchens) writes:
    >
    > | blah while and blah until don't behave like do...while in C
    >
    > They are supposed to behave so, if I understand you correctly.


    I stumbled on this one myself, although I'm not sure it's a bug, and
    it's not a 1.8.2 issue.

    The following two lines behave differently, and it's not obvious why.

    puts 'x' until true

    begin puts 'x' end until true

    This first example prints nothing. The second example above prints 'x'.
    In C, the body of a do/while loop always executes at least once, as in
    the second example. The failed assumption is that the first example is
    just a shorter version of the second example.

    --
    Glenn Parker | glenn.parker-AT-comcast.net | <http://www.tetrafoil.com/>
     
    Glenn Parker, Jan 12, 2005
    #4
  5. Hi,

    In message "Re: Niggly Issues With Latest Version"
    on Thu, 13 Jan 2005 00:27:08 +0900, Glenn Parker <> writes:

    |The following two lines behave differently, and it's not obvious why.
    |
    | puts 'x' until true
    |
    | begin puts 'x' end until true

    Yes, and this is an evidence that I have made mistakes in the language
    design sometimes.

    matz.
     
    Yukihiro Matsumoto, Jan 12, 2005
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eidolon
    Replies:
    0
    Views:
    2,022
    Eidolon
    Jun 26, 2003
  2. Chumley Walrus
    Replies:
    0
    Views:
    418
    Chumley Walrus
    Mar 28, 2005
  3. V Green
    Replies:
    0
    Views:
    885
    V Green
    Feb 5, 2008
  4. PA Bear [MS MVP]
    Replies:
    0
    Views:
    1,000
    PA Bear [MS MVP]
    Feb 5, 2008
  5. MowGreen [MVP]
    Replies:
    5
    Views:
    2,043
    PA Bear [MS MVP]
    Feb 9, 2008
Loading...

Share This Page