Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Niggly Issues With Latest Version

Reply
Thread Tools

Niggly Issues With Latest Version

 
 
Jason Hutchens
Guest
Posts: n/a
 
      01-12-2005
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.
 
Reply With Quote
 
 
 
 
Yukihiro Matsumoto
Guest
Posts: n/a
 
      01-12-2005
Hi,

In message "Re: Niggly Issues With Latest Version"
on Wed, 12 Jan 2005 16:46:18 +0900, http://www.velocityreviews.com/forums/(E-Mail 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.


 
Reply With Quote
 
 
 
 
Joel VanderWerf
Guest
Posts: n/a
 
      01-12-2005
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".


 
Reply With Quote
 
Glenn Parker
Guest
Posts: n/a
 
      01-12-2005
Yukihiro Matsumoto wrote:
> In message "Re: Niggly Issues With Latest Version"
> on Wed, 12 Jan 2005 16:46:18 +0900, (E-Mail 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.

--
Glenn Parker | glenn.parker-AT-comcast.net | <http://www.tetrafoil.com/>


 
Reply With Quote
 
Yukihiro Matsumoto
Guest
Posts: n/a
 
      01-12-2005
Hi,

In message "Re: Niggly Issues With Latest Version"
on Thu, 13 Jan 2005 00:27:08 +0900, Glenn Parker <(E-Mail Removed)> 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Where to get stand alone Dot Net Framework version 1.1, version2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? MowGreen [MVP] ASP .Net 5 02-09-2008 01:55 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? PA Bear [MS MVP] ASP .Net 0 02-05-2008 03:28 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? V Green ASP .Net 0 02-05-2008 02:45 AM
Test King 640-801 latest version Delija Cisco 0 08-23-2005 08:36 AM
latest version Warren Quick Firefox 9 10-07-2003 12:57 AM



Advertisments