15833-16235

15676-16111 subjects 16040-16369

^ newbie question
15833 [eli waite.ad] Why does the following prints 4.0 but prints 60.0 when the statement
+ 15836 [matz zetabit] assign 60*60 to an instance variable @duration.
| 15847 [eli waite.ad] Thanks
| 15851 [matz zetabit] Because the former conflicts with local variable assignment (or in
+ 15841 [wayne.blair ] <Elton Li>

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

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

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

^ 
15862 [kktos electr] This is a multi-part message in MIME format.

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

^ embedded ruby
15871 [wjl mindless] Has anyone had success embedding a ruby interpreter?
+ 15873 [decoux moulo] Yes,
| 15879 [wjl mindless] Well perhaps my problem is that I was following the documentation I
| 15881 [Dave pragmat] Nope - this is a bad example, and I've added an errata entry for
+ 15878 [elanthis use] Yep!  Just last week I got one running beautifully in AweMUD.  ^,^
| + 15883 [tspilman hom] That would mean writing my own parser for ruby.... that seems a bit of a
| | 15900 [elanthis use] 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 moulo] 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 home.d] Did anyone use latest SWIG cvs with ruby wiht positiv results?
15877 [fukusima got] Ruby support in the latest cvs version may be broken.

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

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

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

^ Embedding Ruby in another program
15888 [llothar mail] I'm a SmallEiffel programmer and just thought about adding ruby as a
15934 [matz zetabit] No.  It's stop and sweep type GC.

^ ruby-gtk and io events
15889 [ps radiac.mi] earlier today I posted a question about timers and ruby-gtk which I got
16055 [murxpp aol.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 delp] 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'

^ Dir[]
15894 [todd designs] 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 designs] That didn't work for me (on Windows 2000). Here's my little windows script-
| 15910 [wayne.blair ] Dir["C:/Program?Files/*"]
| 15936 [todd designs] I noticed (maybe this is a problem with Ruby) that all the directory names
+ 15908 [matz zetabit] Hmm, ruby 1.7 allows you to escape space by \.
| 15921 [mike lepton.] Why should spaces be escaped? Why would a space be a delimiter in this method?
| + 15933 [matz zetabit] 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 cosmi] So, I took a stab at implementing a module for classes which want to

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

^ Open a Web Browser in Windows
15929 [mt_horeb yah] 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 yah] Cool!  It works!  Thank you for the help!

^ Snowhite and the Seven Dwarfs - The REAL story!
15945 [hahaha sexyf] Today, Snowhite was turning 18. The 7 Dwarfs always where very educated and
15990 [simon smason] 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 redhookgro] 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 Digi] 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 shell1] 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 designs] I think that comes from the fact that nobody can say "I've been writing Ruby
| 15991 [matz zetabit] I've been writing Ruby extensively for more than 8 years, and most
+ 15980 [alwagner tca] What is everyone calling the "Pickaxe" book?
  15995 [ptkwt shell1] Programming Ruby: The Pragmatic Programmer's Guide
  + 16001 [alwagner tca] Ah, I thought it must be.  I just ordered it.  Now I know it's nickname.
  | 16002 [mirian cosmi] It has a picture of a pickaxe and some rubies on the front cover.
  + 16008 [hfulton aust] And in case it's unclear, people call it the Pickaxe Book because

^ Perl 6 idea: automatic chomp
15949 [cmlr kac.mat] It seems that Perl 6 will be much better, and more like Ruby.  Among
15961 [ser germane-] The command-line option "-l" will do this.

^ What Matz really wanted
15950 [ugly-daemon ] really wanted with ruby. I was wondering, could you try to describe what you
15994 [matz zetabit] 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 cosmi] Does Ruby support anything like Java's packages for partitioning
15953 [ptkwt shell1] modules are used to create new namespaces in Ruby.  I could type in some
15999 [mirian cosmi] Got it.  Is there any shorthand possible for denoting several

^ new keyword idea: tryreturn, tryturn or done
15954 [voidjump nic] I have been toying with idea around "conditional" return statement,
+ 15967 [wayne.blair ] if (x=getValue) return x
| 16011 [voidjump nic] More recently my love/hate relationship with such code has turned
| + 16013 [benoit.cerri] maybe you would find
| | + 16020 [voidjump nic] 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 nic] Ok.
+ 15976 [sma 3plus4.d] Perhaps I don't understand what you want to achieve, but to express it
| 16010 [voidjump nic] Sorry about my bad english, but don't worry I'm bad explainer
+ 16012 [matz zetabit] def doSomethingWith value

^ .scan() using '/' as the regular expression delimiter
15955 [lcluke wsbne] How would I use the .scan() method when '/' is the delimiter (I'm trying to
+ 15956 [lcluke wsbne] 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 wsbne] OK. Thanks for the help, my code now works.
+ 15959 [Dave Pragmat] Scan is different to split: with split you specify the delimiter,

^ Ruby Standard and Enterprise Edition
15960 [b redhookgro] One of the best "marketing" things that Java did was there standard and
+ 15965 [gnhurst hurs] I doubt the community at large would do this. But it sounds like a
| 15975 [glen enabled] I think that's a *great* idea! I have long been pondering doing
| + 15978 [llothar mail] I'm currently in the middle of writing a shareware product ( IDE )
| | + 15981 [ben_tilly op] I think you are mistaken.
| | | + 15989 [b redhookgro] I have to agree with Ben,
| | | + 15996 [ptkwt shell1] And in this particular product space there is ActiveState which has been
| | |   16005 [llothar mail] Loki ???
| | |   16031 [ben_tilly op] Yes, Loki.  The games you are thinking of are not theirs.
| | + 15988 [gnhurst hurs] Well, I can hardly take that statement seriously :-)
| + 15992 [matz zetabit] 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 zetabit] 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 nic] Here is one silly idea for tree-like data traversal with Ruby.

^ Japanese language question
15979 [llothar mail] 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 redhookgro] Have I mentioned how much I hate compiling things today? There are good

^ ruby-mode not hilighting keywords in XEmacs 21.4?
15998 [jeffrey Digi] In a freshly-built XEmacs 21.4.3 with lots-o-packages installed,
16006 [Dave Pragmat] ruby-mode uses (featurep 'font-lock) to initialize variables
16067 [thlai mail.u] ...
16073 [Dave Pragmat] Many thanks: that seems to work. Much appreciated.

^ ANN: Facet 0.2
16004 [b redhookgro] Facet v.0.2 has been released in Source Forge.  This version include the

^ tryreturn - names and intentions
16015 [voidjump nic] 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 nic] Sorry, "module TryReturn" in original message was misleading.
+ 16066 [jj5412 earth] def getAValue

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

^ Data Security Survey
16028 [Centurion ze] Dear Sir / Madam,

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

^ /src/rough
16030 [knu iDaemons] I am pondering creating a module to put everybody's miscellaneous ruby
+ 16052 [avi beta4.co] I heartily second this proposal.
+ 16075 [knu iDaemons] Some additions.

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

^ Ruby/GD 0.7.4
16039 [tam kais.kyo] Ruby/GD 0.7.4 is released. You can get it from RAA, or
threads.html
top