15676-16111 subjects 16040-16369

newbie question
15833 [eli@wa te ad] ...
+ 15836 [matz@ze ab t] assign 60*60 to an instance variable @duration.
| 15847 [eli@wa te ad] Thanks
| 15851 [matz@ze ab t] Because the former conflicts with local variable assignment (or in
+ 15841 [wayne.blair@] <Elton Li>

15846 [ps@ra ia .m ] I have an application using ruby-gtk which wants to update a CList every X
+ 15849 [erik@ba fo s] Without being 100% sure about this, it do think you can/should use
| 15853 [ps@ra ia .m ] thank you for the quick reply. I had missed the Gtk.* methods (not browsing
+ 15854 [bombadil@wa ] Have you tried with 'Gtk::timeout_add'?

irb/completion BUG?
15857 [phasis@ha an] When  I try irb -r irb/completion and type "ab.<TAB>",
15865 [keiju@is it ] Perhaps, You use an old version of irb/completion. Down load from RAA.

If you want explicit instvar definitions...
15858 [sma@3p us .d] To allow a better documentation of classes, I added a "var" method to
+ 15898 [hal9000@hy e] Stupid or useful?  :)  Are those always mutually exclusive?
| 15970 [sma@3p us .d] Nice point of view :-)
+ 15997 [matju@sy pa ] In dynamically-typed language circles there is the consensus that

15862 [kktos@el ct ] ...

Experimental "in" operator for collections
15863 [sma@3p us .d] There's one thing where I prefer Python over Ruby.  Testing whether an
+ 15866 [mike@le to .] object.in? array
| 15885 [sma@3p us .d] Sure. This was my first try but then I thought it might be interesting
+ 15897 [hal9000@hy e] I've been in favor of an "in" operator for awhile...
| 15971 [sma@3p us .d] Why?
| 16007 [hfulton@au t] Just because changes to the core language should be
| + 16016 [benoit.cerri] I agree wholeheartedly.
| + 16054 [sma@3p us .d] Sure.
+ 15915 [matz@ze ab t] I like this idea.  My only concern left is whether "include?" is a
  + 15964 [green@Fr eB ] Personally, I feel it's moving in the wrong direction.  I like the idea of
  + 15972 [sma@3p us .d] Thanks.
  + 16009 [patrickdloga] I would regret having more reserved syntax. The beauty of an simple
    16053 [sma@3p us .d] It is probably a matter of personal taste.

embedded ruby
15871 [wjl@mi dl ss] Has anyone had success embedding a ruby interpreter?
+ 15873 [decoux@mo lo] Yes,
| 15879 [wjl@mi dl ss] Well perhaps my problem is that I was following the documentation I
| 15881 [Dave@pr gm t] Nope - this is a bad example, and I've added an errata entry for
+ 15878 [elanthis@us ] Yep!  Just last week I got one running beautifully in AweMUD.  ^,^
| + 15883 [tspilman@ho ] That would mean writing my own parser for ruby.... that seems a bit of a
| | 15900 [elanthis@us ] Why do you have to write a parser?  Just load the Ruby code, and then use stuff like rb_funcall() to execute certain methods.
| + 15914 [decoux@mo lo] No. You have not understood. For example in an extension, or an embedded
+ 15884 [benoit.cerri] You can take a look at ruby's extension for vim (and at vim by itself if you

Ruby and SWIG
15874 [mlang@ho e. ] Did anyone use latest SWIG cvs with ruby wiht positiv results?
15877 [fukusima@go ] Ruby support in the latest cvs version may be broken.

ssh interface?
15880 [djberg96@ho ] Just curious if anyone out there is working on an ssh module for ruby (or
15892 [gnhurst@hu s] It is a ruby version of 'zebedee', which is a freeware implementation

Q about TrueClass & FalseClass
15886 [sma@3p us .d] Is there any special reason why TrueClass and FalseClass are direct
+ 15896 [hal9000@hy e] Or do it trivially in Ruby. Though it's somewhat meaningless.
+ 15905 [feldt@ce ch ] * introduce Boolean class; super of TrueClass, FalseClass
  15909 [matz@ze ab t] But I'm not sure how useful it is in the dynamic typed language like
  15973 [sma@3p us .d] Good point.  You're right.  I forgot about that.

How to enumerate known subclasses?
15887 [sma@3p us .d] In Smalltalk, any class knows its subclasses (at least the loaded
15911 [matz@ze ab t] How about making a class/module relation table at first by enumerating
15974 [sma@3p us .d] Sure. That could be easily added but are there any arguments against
15993 [matz@ze ab t] Mostly implementation issue.  Implementing subclasses array requires

Embedding Ruby in another program
15888 [llothar@ma l] I'm a SmallEiffel programmer and just thought about adding ruby as a
15934 [matz@ze ab t] No.  It's stop and sweep type GC.

ruby-gtk and io events
15889 [ps@ra ia .m ] earlier today I posted a question about timers and ruby-gtk which I got
16055 [murxpp@ao .c] UDP

Ruby/MySQL Configuration Difficulty
15891 [pbeckingham@] I have been watching this list for a few weeks now, I have bought and read
15920 [mikaelh@de p] I think uncompress might be found in zlib so try to link mysql with zlib.
15927 [pbeckingham@] Thank you Micke!

netbeans IDE - adaptable for Ruby?
15893 [davidscotson] I've just discovered the open-source NetBeans IDE (a.k.a.Sun Microsystems'

15894 [todd@de ig s] files = Dir["C:/dir1/dir2/*"]
+ 15906 [wayne.blair@] Here are a couple of hacks that  might get you what you want.  If anyone
| 15907 [todd@de ig s] That didn't work for me (on Windows 2000). Here's my little windows script-
| 15910 [wayne.blair@] Dir["C:/Program?Files/*"]
| 15936 [todd@de ig s] I noticed (maybe this is a problem with Ruby) that all the directory names
+ 15908 [matz@ze ab t] Hmm, ruby 1.7 allows you to escape space by \.
| 15921 [mike@le to .] Why should spaces be escaped? Why would a space be a delimiter in this method?
| + 15933 [matz@ze ab t] Mostly historical reason.  Hmm, let me think about it.
| + 15935 [benoit.cerri] I agree that this would be more intuitive and would also take care of the
+ 15913 [wayne.blair@] Have you considered only allowing the backslash escaping in charsets, or

Operable module
15899 [mirian@co mi] So, I took a stab at implementing a module for classes which want to

Re: MetaRuby (0.5,0.6,CVS)
15912 [matju@sy pa ] I forgot to update the entry in the RAA for MetaRuby. As a result, lots of

OT: Problems with Win32OLE (long)
15918 [tammo.freese] I currently have to work on development/maintenance of a VBA Excel

Block arguments vs method arguments
15923 [mike@le to .] Why is block arguments definition so different from method arguments definition?
+ 15925 [decoux@mo lo] It's best to see |x, y, z| as a multi-asssignement
| + 15926 [mike@le to .] Why aren't they arguments? or why aren't methods arguments a multi-assignement?
| | + 16045 [r2d2@ma .a c] Neither do I. I hope that when we have a working <...>, |...| will become
| | | 16070 [hal9000@hy e] to
| | | + 16076 [matz@ze ab t] This is a price for a mistake I made.  I feel really sorry that YOU
| | | | + 16104 [hal9000@hy e] Speaking only for myself... this guilt is surely misplaced.
| | | | + 16132 [spwhite@ch r] How about this for another approach?
| | | + 16081 [ser@ma s. er] Hear, hear.  The thought of using <...> makes me cringe.
| | |   16088 [dnm@po ox co] I suppose having my first post weigh in on a syntax issue is as good as
| | |   16089 [mirian@co mi] I agree... and I'm just starting to get the hang of this language, so
| | |   16090 [gc@ma dr ke ] Hey! -- If I count right, 4 persons (Sean Russell, Hal E. Fulton, Dan
| | |   + 16095 [dnm@po ox co] I'm definitely meddling in something I don't understand fully here, but
| | |   + 16096 [ser@ge ma e-] 1) There are better (IMHO) solutions for the problem.  I, personally, liked
| | |   | + 16098 [gc@ma dr ke ] That isn't a big deal since we will use a "closed" version here, sticked
| | |   | + 16106 [hal9000@hy e] they
| | |   | + 16120 [matz@ze ab t] I don't think it's better, because
| | |   | | + 16133 [mike@le to .] What about "(...)"?
| | |   | | + 16137 [gnhurst@hu s] It seems to me that this sheds new light on the problem, and
| | |   | | | 16139 [matz@ze ab t] It's better looking, but may cause syntax conflict, e.g.
| | |   | | | 16141 [spwhite@ch r] It needs upgrading if it lacks the version keyword. :)
| | |   | | + 16145 [ser@ge ma e-] Yes.  The only way this would be a Good Thing would be if the scoping rules
| | |   | |   16153 [matz@ze ab t] I HATE both.  And the latter is not mine.  Mine is either
| | |   | |   16155 [hfulton@po -] Matz,
| | |   | |   + 16158 [WillC@we mi ] I can't resist making a suggestion. I hope this one hasn't already been
| | |   | |   | 16187 [ser@ma s. er] Aaaaaauuuugh!!!!
| | |   | |   + 16167 [matz@ze ab t] Yes.
| | |   | |     16186 [ser@ma s. er] Wow.  Duh.  Why did I miss this?
| | |   | |     16193 [matz@ze ab t] Any variables other than local variables would NOT be allowed in <..>.
| | |   | + 16135 [ugly-daemon@] I don't like either : or < >. Someone here made the suggestion that we use ( )
| | |   + 16105 [hal9000@hy e] True, but let's improve the semantics without injecting too much noise
| | + 16072 [matz@ze ab t] They're what I'm trying to achieve.  Hard part is keeping minimum
| + 15928 [decoux@mo lo] a block is defined independantly of |x, y, z| not a method.
| | + 15930 [mike@le to .] I don't understand. Blocks have arity, their arguments are not independant.
| | + 15937 [decoux@mo lo] [1, 2].each {|x, y| }
| + 16159 [alwagner@tc ] Would one of you nice people on this thread please explain what the "problem"
|   + 16163 [mike@le to .] This thread started because I was intrigued by the syntax of block arguments not being the same as method arguments (ie, you must use |a,| to expect exactly one argument). I was missing that block arguments are not really *arguments*.
|   | + 16165 [decoux@mo lo] Another possibility is to don't change ruby and have only ||. The
|   | + 16169 [matz@ze ab t] I proposed three changes before (forgot message number).
|   + 16168 [matz@ze ab t] There're TWO closely related but different problems.
|     16171 [alwagner@tc ] I don't know what this means.  That yield calls a block multiple times?
|     16235 [mike@le to .] a, b, *c = <the arguments given to yield>
+ 15931 [matz@ze ab t] Block parameters are originated from iteration variables, which can be
  15941 [mike@le to .] I like that.
  15982 [matz@ze ab t] def foo

Open a Web Browser in Windows
15929 [mt_horeb@ya ] Is anyone aware of a way to automatically open and redirect a web
15944 [wayne.blair@] Yeah, it's real easy:  You can see Microsoft documentation for OLE commands
16000 [mt_horeb@ya ] Cool!  It works!  Thank you for the help!

Snowhite and the Seven Dwarfs - The REAL story!
15945 [hahaha@se yf] ...
15990 [simon@sm so ] I thought people might like to know that I got a virus warning on this exe

compile errors in OSX: suggestions?
15946 [brennansdad@] I am trying to compile ruby-1.6.3 in OSX, and at the end of the make I
+ 15957 [b@re ho kg o] I had the same problem. Thankfully there is a copy of Ruby for OS/X in
+ 15958 [Johan.Dahl@l] I have filed this in the bug database.
+ 15985 [jeffrey@Di i] I had the same problems with 1.6.3, but 1.7 (at least, what's in CVS)

Traffic seems to be up significantly
15947 [ptkwt@sh ll ] I don't know if its just my imagination or if my news server has just been
+ 15948 [wayne.blair@] I bought the pickaxe book a few weeks ago on no recommendation, just saw it
| 15951 [todd@de ig s] I think that comes from the fact that nobody can say "I've been writing Ruby
| 15991 [matz@ze ab t] I've been writing Ruby extensively for more than 8 years, and most
+ 15980 [alwagner@tc ] What is everyone calling the "Pickaxe" book?
  15995 [ptkwt@sh ll ] Programming Ruby: The Pragmatic Programmer's Guide
  + 16001 [alwagner@tc ] Ah, I thought it must be.  I just ordered it.  Now I know it's nickname.
  | 16002 [mirian@co mi] It has a picture of a pickaxe and some rubies on the front cover.
  + 16008 [hfulton@au t] And in case it's unclear, people call it the Pickaxe Book because

Perl 6 idea: automatic chomp
15949 [cmlr@ka .m t] It seems that Perl 6 will be much better, and more like Ruby.  Among
15961 [ser@ge ma e-] The command-line option "-l" will do this.

What Matz really wanted
15950 [ugly-daemon@] In an earlier message you said we had to access your brain to see what you
15994 [matz@ze ab t] The sourcecode will tell you most of my intention.  But parse.y is
16033 [ugly-daemon@] Yes I would like to implement my own interpreter. I am learning all sorts of

namespace partitioning in Ruby
15952 [mirian@co mi] Does Ruby support anything like Java's packages for partitioning
15953 [ptkwt@sh ll ] modules are used to create new namespaces in Ruby.  I could type in some
15999 [mirian@co mi] Got it.  Is there any shorthand possible for denoting several

new keyword idea: tryreturn, tryturn or done
15954 [voidjump@ni ] I have been toying with idea around "conditional" return statement,
+ 15967 [wayne.blair@] if (x=getValue) return x
| 16011 [voidjump@ni ] More recently my love/hate relationship with such code has turned
| + 16013 [benoit.cerri] maybe you would find
| | + 16020 [voidjump@ni ] If it works, I would. But does that "result = getValue" part get
| | + 16034 [ugly-daemon@] This reminds me of a problem I have that is very similar to the above. I would
| |   + 16036 [ben_tilly@op] would
| |   | 16043 [ugly-daemon@] I had a game awhile ago but it has disappeared (I must have erased it). In it
| |   + 16042 [wayne.blair@] conditional. Did
| + 16014 [wayne.blair@] efficient,
|   16023 [voidjump@ni ] Ok.
+ 15976 [sma@3p us .d] Perhaps I don't understand what you want to achieve, but to express it
| 16010 [voidjump@ni ] Sorry about my bad english, but don't worry I'm bad explainer
+ 16012 [matz@ze ab t] def doSomethingWith value

.scan() using '/' as the regular expression delimiter
15955 [lcluke@ws ne] How would I use the .scan() method when '/' is the delimiter (I'm trying to
+ 15956 [lcluke@ws ne] err, my current code looks something like this (noting that it does not in
| 15962 [Johan.Dahl@l] You are using the wrong function. scan should match the whole pattern
| 15966 [lcluke@ws ne] OK. Thanks for the help, my code now works.
+ 15959 [Dave@Pr gm t] Scan is different to split: with split you specify the delimiter,

Ruby Standard and Enterprise Edition
15960 [b@re ho kg o] One of the best "marketing" things that Java did was there standard and
+ 15965 [gnhurst@hu s] I doubt the community at large would do this. But it sounds like a
| 15975 [glen@en bl d] I think that's a *great* idea! I have long been pondering doing
| + 15978 [llothar@ma l] I'm currently in the middle of writing a shareware product ( IDE )
| | + 15981 [ben_tilly@op] I think you are mistaken.
| | | + 15989 [b@re ho kg o] I have to agree with Ben,
| | | + 15996 [ptkwt@sh ll ] And in this particular product space there is ActiveState which has been
| | |   16005 [llothar@ma l] Loki ???
| | |   16031 [ben_tilly@op] Yes, Loki.  The games you are thinking of are not theirs.
| | + 15988 [gnhurst@hu s] Well, I can hardly take that statement seriously :-)
| + 15992 [matz@ze ab t] As an employee of an open-source company, I know it is hard to
|   16032 [ugly-daemon@] I thought ruby was released under the GPL?? Or am I misunderstanding something??
|   16035 [matz@ze ab t] Ruby is released under GPL or Artistic like license.  See README.
|   16037 [ben_tilly@op] something??
+ 15968 [wayne.blair@] Do you think it would make sense to create a legal entity to market an

navigator.rb - tree navigation
15963 [voidjump@ni ] Here is one silly idea for tree-like data traversal with Ruby.

Japanese language question
15979 [llothar@ma l] i'm currently writing the editor for my IDE and would like to know

commercial ventures with ruby
15984 [wayne.blair@] a) The point is to make ruby acceptable for them (convincing them it has

dyld: ruby Undefined symbols:_pg_encoding_to_char
15987 [b@re ho kg o] Have I mentioned how much I hate compiling things today? There are good

ruby-mode not hilighting keywords in XEmacs 21.4?
15998 [jeffrey@Di i] In a freshly-built XEmacs 21.4.3 with lots-o-packages installed,
16006 [Dave@Pr gm t] ruby-mode uses (featurep 'font-lock) to initialize variables
16067 [thlai@ma l. ] ...
16073 [Dave@Pr gm t] Many thanks: that seems to work. Much appreciated.

ANN: Facet 0.2
16004 [b@re ho kg o] Facet v.0.2 has been released in Source Forge.  This version include the

tryreturn - names and intentions
16015 [voidjump@ni ] As I'm not explaining things or naming things, here is some more
+ 16019 [wayne.blair@] returnIfNotNil is the only one that jumps out at me.
| 16024 [voidjump@ni ] Sorry, "module TryReturn" in original message was misleading.
+ 16066 [jj5412@ea th] def getAValue

Logical values in Ruby?
16025 [voidjump@ni ] Has anyone done Logical values (that is true, false or unknown) in
16026 [matz@ze ab t] How about using `nil' for that purpose?
16027 [voidjump@ni ] I thought of that too, but nil evaluates false. And then everyting

Data Security Survey
16028 [Centurion@ze] ...

Compiling problem
16029 [mgiacoma@ds ] I've  downloaded  the stable snapshot of Ruby (almost-release 1.6.4)

16030 [knu@iD em ns] I am pondering creating a module to put everybody's miscellaneous ruby
+ 16052 [avi@be a4 co] I heartily second this proposal.
+ 16075 [knu@iD em ns] Some additions.

Suggestions for local Ruby Web/CGI Processing
16038 [mt_horeb@ya ] I'm starting work on a project that requires (per the customer) an

Ruby/GD 0.7.4
16039 [tam@ka s. yo] Ruby/GD 0.7.4 is released. You can get it from RAA, or