Niggly Issues With Latest Version

J

Jason Hutchens

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.
 
Y

Yukihiro Matsumoto

Hi,

In message "Re: Niggly Issues With Latest Version"
on Wed, 12 Jan 2005 16:46:18 +0900, (e-mail address removed) (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.
 
J

Joel VanderWerf

Jason said:
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".
 
G

Glenn Parker

Yukihiro said:
In message "Re: Niggly Issues With Latest Version"
on Wed, 12 Jan 2005 16:46:18 +0900, (e-mail address removed) (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.
 
Y

Yukihiro Matsumoto

Hi,

In message "Re: Niggly Issues With Latest Version"

|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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top