Some suggestions

C

christophe.poucet

Dear,

I have two suggestions which I think would be useful in ruby.

First of all, I have noted that a sleeping thread (a thread that was
..stop'ed) does no longer have the method .stop... This means that one
must use
thread.stop unless thread.stop?
I would suggest implementing a stop method on a sleeping thread that is
basically a noop.

Secondly, I have noticed that the strip/lstrip/rstrip methods of String
do not take a string with the possible characters to remove. Possibly
this could be changed, and then have as default value " ". What I mean
is:

"aaabbbccc".lstrip("ab") => "ccc"
"abababccc".lstrip("ab") => "ccc"
"ababcabc".lstrip("ab") => "cabc"

Similarly for strip and rstrip.

With regards,
Christophe
 
N

nobuyoshi nakada

Hi,

At Tue, 13 Sep 2005 13:01:32 +0900,
First of all, I have noted that a sleeping thread (a thread that was
..stop'ed) does no longer have the method .stop... This means that one
must use
thread.stop unless thread.stop?

There's no such method Thread#stop. Threads can stop only
current thread itself.
 
C

christophe.poucet

Indeed, I noticed that too late. So please disregard the comment about
Thread. On the other hand, I do think that the extension to the
different strip methods would be useful.

With regards,
Christophe
 

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,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top