41883-43622 subjects 42269-43274

^ RE: Park and Sean....Possible memory bug in Ruby? I'm stumped!
42093 [keuler porta] Thanks a lot, Park and Sean.
+ 42095 [wjl icecaver] I believe he meant GC, as in garbage collection. There is nothing about
| + 42096 [dossy panopt] You know, this might be the problem I'm experiencing with DBI and
| | 42098 [wjl icecaver] I'm not real familiar with DBI and the dbd_oracle extension, but
| + 42100 [tom.hurst cl] file = fopen(fname, mode);
+ 42158 [nospam faked] I believe you were using a file that had been opened inside a block. I

^ < and > (was RE: ANN: REXML 2.3.5 && 2.2.3)
42101 [james rubyxm] The complete sentence is

^ Ternary Operator
42103 [conic bigpon] ...
+ 42105 [james rubyxm] greaterThanFive = (x > 5) ? "yes" : "no"
+ 42113 [trivas7 rawb] Yes, to my newbie-knowledge it is borrowed from C:  condition? expr1 : expr2
+ 42145 [C.Teubner t-] greaterThanFive = if x > 5 then "yes" else "no" end

^ String.left?
42107 [pmak animegl] Is there a function that acts like String.left? I'd like to be able to
+ 42108 [tsiivola cc.] String#slice and it's synonym String#[ ]
| 42109 [vjoel PATH.B] ..and decide how you want to handle strings shorter than 4 :)
+ 42110 [kturing yaho] ...

^ Getting method! for free from method
42112 [pmak animegl] def method
+ 42114 [ned bike-nom] No. How would it know what you wanted method!() to do?
| 42116 [pmak animegl] #define o.method!(x) o = o.method(x)
| 42129 [james rubyxm] If you can define an expression for deriving some_method! if you already
+ 42115 [james rubyxm] method! would suggest that there were some permanent side effects to the
| 42117 [pmak animegl] With the way I'm thinking of it, myObj.right_now! would be equivalent
| 42118 [hal9000 hype] I see a problem.
| 42126 [ned bike-nom] objOne become: objTwo
+ 42136 [kentda stud.] As others have pointed out, nope.

^ RE: Park and others!.....Possible memory bug in Ruby? I'm stumped !
42119 [keuler porta] All-
42120 [hal9000 hype] Kurt,
+ 42121 [keuler porta] Hal-
+ 42134 [timsuth ihug] ...
  42160 [hal9000 hype] Right on both counts.

^ RE:Hal.....Possible memory bug in Ruby? I'm stumped!
42122 [keuler porta] Hal-
42123 [dossy panopt] File.open("./output/#{field[0]}", "w+") { |file| file.write(content2) }
42124 [hal9000 hype] file.write(content2) }
42125 [keuler porta] Thanks all! Works great!!!

^ ANNOUNCE: PageTemplate 0.3.2
42130 [brian coolna] Thanks to the watchful eye of Patrick Roemer, there's a newer, slightly

^ RubyCOM, ActiveScriptRuby, etc.
42131 [hal9000 hype] I ask this periodically in hopes that
42132 [james rubyxm] Which topics? RubyCOM and ActiveScriptRuby, or HomeSeer, or the
+ 42133 [botp delmont] Why not??:-)
| 42144 [chris.morris] I'm also very interested in RubyCOM, though I have yet to check it out :)
+ 42159 [hal9000 hype] Well, I'm looking for someone at least willing/able to
  42162 [james rubyxm] I did take a look at it, but could not find a way to tell HomeSeer what
  42166 [hal9000 hype] time,

^ extconf.rb and c++
42135 [Martin.Man s] I'm crafting some ruby extensions, and in order to detect some header files
42146 [pbrannan atd] CPP.sub!(CONFIG['CPP'], 'g++ -E')

^ [OT]  < and > (was RE: ANN: REXML 2.3.5 && 2.2.3)
42137 [tobiasreif p] Yes.
+ 42140 [dossy panopt] This just means "when you are escaping the right angle bracket,
+ 42141 [tobiasreif p] XMLers,

^ [OT] Re: ANN: REXML 2.3.5 && 2.2.3
42138 [tobiasreif p] I did not. I provided the URL for further reading.
42244 [ser germane-] The structure of the 'rule' sentance dictates that they are speaking
42247 [tobiasreif p] I know that that's well-formed.

^ FXRuby: how to open a second window?
42143 [Laurent.Jull] <disclaimer>
42154 [lyle users.s] I'm not sure if I understand the question, but if you're just wanting to
42297 [Laurent.Jull] Thanks for the suggestion. Jeroen told me that this is not supported in
42443 [lyle knology] doesn't seem to exist in

^ multiple instances of Ruby interpreter in my C++ code?
42147 [TScheuermann] I'm new to Ruby and am currently trying to embed Ruby in a C++ program. It
42148 [elanthis awe] Ruby makes use of a lot of global values - there is no way of doing this
+ 42150 [TScheuermann] I wanted to use it in a module for an application to run (currently) very
| + 42151 [elanthis awe] Ew, the threading will be a problem.  As mad as some people on the list
| | 42152 [TScheuermann] Well, the threading in the app is cooperative, not preemptive. So if there
| | 42155 [elanthis awe] To be honest, I've never really seen the point of cooperative
| | 42164 [jean_hugues_] When making the code "thread safe" is not worth the trouble, it
| | 42165 [elanthis awe] Again, I'd find it simpler to just use a set of callbacks than to go
| | 42188 [chris darkro] This is a blatent plug, but you should check out ferite. It has threading
| + 42153 [dossy panopt] As Sean mentioned, right now Ruby won't do what you want.  He
| + 42156 [decoux moulo] ...
|   42157 [TScheuermann] Thanks for all the suggestions. The cooperative multithreading isn't my
+ 42175 [sean chitten] Same problem, different application domain: Apache 2.0.  Inorder for

^ Ranges
42161 [peter semant] Is there a particular reason why
42163 [decoux moulo] ...
42177 [qrczak knm.o] ...

^ Alternate Regular Expressions Library
42169 [dennisn pe.n] A few weeks ago on the mailing list there was a small thread discussing
42187 [matz ruby-la] Unofrtunately, PCRE does not satisfy all of my needs, for example

^ def +=
42170 [kgergely mla] I've successfully redefined the + method, the <=> method in some
+ 42172 [airboss node] That's because += isn't really a method, it's just a compound of + and
+ 42173 [uu9r rz.uni-] It's simply not possible!
| 42200 [jean_hugues_] How is that += automatically generated (if at all) ?
| 42230 [vjoel PATH.B] Actaully, += is not a method. IIRC x += 1 just syntax sugar for x = x +
+ 42189 [chr_news gmx] It is a C++ idiom to define an ``+'' operator in terms of an ``+=''

^ step
42171 [kgergely mla] I just discovered step, but if I can see (in 1.6) it works on just
+ 42176 [alan digikat] I'm guessing because of the inaccuracy of floats. If you define a step size
| 42190 [chr_news gmx] size
+ 42186 [matz ruby-la] We are experimenting on 1.7.

^ FXRuby simple FXTextField question
42191 [namille2 vt.] ...
42217 [lyle users.s] ...

^ ruby-dev summary 17252-17356
42192 [aamine mx.ed] This is a summary of ruby-dev ML in these days.
+ 42193 [vjoel PATH.B] Is there any reason this syntax wouldn't work?
| 42194 [matz ruby-la] In case we choose <a,b,c; x,y> form, |a,b,c; x,y| will perhaps be
| 42203 [Dave Pragmat] I'm not sure I understand why we'd want to change the '|...|' to
| 42228 [matz ruby-la] No, the idea was *not* changing, but providing both. '|...|' is for the
| 42245 [hal9000 hype] In that case, what does the semicolon
| + 42249 [kentda stud.] The same, I would assume. Even if the parameter assignment is done like
| | 42250 [hal9000 hype] the
| + 42251 [Dave Pragmat] It separates parameters from variables which are local to the block.
|   + 42256 [hal9000 hype] [snippage]
|   | 42260 [martine cs.w] (1..10).each do |a|b|
|   | 42263 [nobu.nokada ] It's parsed as |a| followed by a method/variable `b' and a
|   + 42258 [angus quovad] and
|   | 42267 [matz ruby-la] How about
|   | + 42291 [jean_hugues_] 5.times do new a = gets, print a end
|   | + 42314 [dossy panopt] 5.times do(a) a=gets; print a end
|   | | 42322 [matz ruby-la] Unfortunately, yacc doesn't like this rule.  It causes conflicts.
|   | | 42325 [dossy panopt] 5.times.do(a) a=gets; print a end
|   | | 42328 [decoux moulo] ...
|   | + 42361 [angus quovad] The ':=' is nice, but it will become more complicated if later you decide to
|   |   42372 [matz ruby-la] I'm not sure I got your idea.  As long as the initialization is in the
|   |   42551 [angus quovad] But in
|   + 42343 [adamon maila] a = 1
|     42352 [jfh cise.ufl] Hey, I like it.
|     + 42367 [adamon maila] I'd actually meant for the 'with' clause to appear outside of the
|     + 42391 [jean_hugues_] about scope design,
+ 42262 [jfh cise.ufl] Should we perhaps take a vote and see how many folks have ruby
  + 42264 [nobu.nokada ] My codes sometimes do it.
  + 42268 [Dave Pragmat] sum = 0
  | 42272 [nobu.nokada ] sum = 0
  | 42273 [Dave Pragmat] Dave
  + 42271 [timsuth ihug] ...
  + 42285 [hal9000 hype] I don't think I agree.
  | 42311 [jfh cise.ufl] True...it would have to be rewritten as
  + 42293 [jean_hugues_] I have some such parameters, I wish the reference would be more
  | 42310 [jfh cise.ufl] Perhaps not so bad -- it appears to me that Ruby's scoping rules are similar
  + 42294 [j.travnik sh] I would vote for local behaviour = shadowing.

^ SWIG, C++ and static member variables
42195 [ptkwt shell1] ...
+ 42196 [Paul.Watkins] If Person.h is being included in multiple compilation units then the static will be defined multiple times. You need to pick a .cpp file and defines it once there.
+ 42208 [lyle users.s] Ummm, no. The problem is that (as the error message states) you have

^ Re: DRb, Soap XML-PRC Rinda and Jini
42198 [ahumphreys D] Since several people seemed interested in further exploring distributed

^ Re: net/ftp is cpu bound on fast internet connections
42199 [shugo ruby-l] Can you try this patch?

^ Bug in cvs ruby parser
42201 [qrczak knm.o] ...
42240 [matz ruby-la] Thank you for the report.  I will fix the bug soon.

^ ruby-qt3 proposal (c++ based extensions)
42202 [Martin.Man s] I've prepared a short proposal on how to quickly (but without loosing
42204 [szegedy nosp] ...
+ 42206 [Martin.Man s] ed
| + 42212 [cboos bct-te] Stepping into the discussion...
| | 42220 [szegedy nosp] Yes one can do a lot of top of an extension, e.g. one could write
| + 42215 [szegedy nosp] I was unclear on that point: for each class (not for each function), I would like
+ 42209 [lyle users.s] I don't really want to stumble into the middle of the Qt3 part of this
  42214 [szegedy nosp] I have not checked the newer versions of SWIG lately. However I disliked
  42219 [lyle users.s] Yes, that is solved in SWIG-1.3.12! I didn't like not being able to

^ rubycookbook
42207 [W.L.Kleb lar] Any news on http://www.rubycookbook.org/ availability?
42213 [armin xss.de] if webspace is the problem, we can host it for free here,

^ Q. Minimal Ruby
42210 [amcfarlane m] Would it be possible to create a 'minimal' Ruby, that can be embedded into
42221 [emiel il.fon] Although I've never used it, Ferite might be what you are looking for.
42452 [wfaxon gis.n] Lua might do, too. (I haven't used it, either.)  It doesn't have the

^ Composite classes - how to?
42211 [Serg VisualN] I'm just trying to learn Ruby and am wondering what the proper way of
+ 42216 [ned bike-nom] Do you mean that you want *an instance* of one class be an instance
+ 42232 [rawlins cs.u] ...

^ hostent extension problem - returning the ip address
42218 [djberge qwes] Ruby 1.6.7 on Solaris 8
+ 42223 [decoux moulo] ...
| 42225 [djberge qwes] I was guessing, actually - I knew that didn't work, I merely put it there as
| 42226 [decoux moulo] ...
+ 42229 [matz ruby-la] You are freeing struct hostent given by gethostname(3).
  42242 [djberge qwes] Various attempts at this suggestion (prior to posting) failed.  Now,

^ Problem building ruby-mysql
42222 [codon optush] [martin@co3013842-a mysql-ruby-2.4.2a]$ ruby extconf.rb

^ Norwegian translation of "Programming Ruby" in progress.
42224 [kentda stud.] Hei || Hi
42231 [moxliukas de] I would also like to announce that Lithuanian translation is also under

^ pack()ing Bignums
42227 [airboss node] I have a 128-bit Bignum that I need to pack into a binary string in
42233 [matz ruby-la] a)
42234 [airboss node] data.unshift((b>>i*32)&0xffffffff)
42237 [decoux moulo] ...
42239 [matz ruby-la] Oops, 1.7 is too smart.  I should have checked on 1.6 as well.

^ My informal experiment with abusing threads
42235 [pmak animegl] require 'thread'

^ Parrot Presentation in Phoenix, Arizona
42236 [james rubyxm] I'm gathering the names of Rubyists interested in attending a presentation
+ 42238 [pate eylerfa] On a related note, the London Ruby Users Group met last night and talked
+ 42283 [dan sidhe.or] For those folks that can't make it, I'll be putting up an MP3 of the
  42359 [chris cmb-en] I suppose this means you won't be providing round-trip, cross-country

^ Modules and version determination
42241 [djberge qwes] I'm curious as to what you all think about an internal 'version()' method
+ 42243 [dossy panopt] I think I brought this up on IRC, suggesting that a published module
| 42345 [pbrannan atd] Ruby uses MAJOR, MINOR, and TEENY.  It would be nice to be consistent.
| 42346 [dossy panopt] Ah, didn't know that.
| 42357 [pbrannan atd] The two ideas are somewhat orthogonal.  RubyVersion was really just a
| 42360 [khaines enig] Yes, quite easily.  Right now it accept the version as a string, on the
+ 42248 [khaines enig] FILE NAME: $RCSfile: Meta.rb,v $
  + 42292 [jean_hugues_] I am interested to have a look at it. Thanks.
  + 42358 [bigbill.smit] I would be interested.
  + 42362 [tom.hurst cl] *slap*.  Version numbers are *not* floats.
    42402 [djberge qwes] Kirk, it sounds like you've thought this out a bit.  Any chance of
    42407 [dossy panopt] Another thing that is important to track is module dependencies.
    + 42415 [khaines enig] I'll volunteer to take my current module and mutate it to fit this
    | 42422 [djberge qwes] Hooray!  Thanks!
    + 42447 [list chromat] rapt install rdoc
      42473 [dossy panopt] So, if module authors would just distribute them as rpkg/rapt
      42501 [list chromat] I'd be crazy to work on the whole damn thing and not think so. :-)
      42509 [dossy panopt] Is there a reliable rpkg/rapt server?  If the issue is re-packaging
      42525 [list chromat] Curt Hibbs kindly provided the space where the current .rpk packages

^ How to reset a variable to the value in another variable?
42252 [keuler porta] All-
+ 42253 [ned bike-nom] Well, sure. You're just pointing to intro. If you want to edit it,
| 42254 [armin xss.de] if you want more info as always Dave & Andy have done the work :-)
| 42259 [james rubyxm] And if you don't want a new String object, just the same object with new
| 42279 [keuler porta] Thanks all. Works great!
+ 42316 [dossy panopt] 08     content2 = intro.dup

^ catching error message
42257 [tobiasreif p] Im doing
42265 [nobu.nokada ] def redirect2(output, error, *commands)

^ Ruby for jMax
42261 [matju sympat] It works.
+ 42307 [D.Casal uea.] Can you say more about this? Does it mean you embedded an Ruby interpreter
| 42319 [matju sympat] # this is the demo and test for Ruby->jMax bridge
| + 42330 [matju sympat] oh, and for specifics of installation: you need libruby.so, and it will be
| + 42409 [Francois.Dec] This looks good. How big is the Ruby interpreter ? Does it have its
|   + 42421 [rawlins cs.u] I'm curious what you mean by this; could you elaborate?  I guess I'm having
|   + 42578 [matju sympat] size /opt/lib/libruby.so.1.6.7
+ 42369 [vincent ulys] Just stumbled on this post :)
  42458 [ccos bigpond] ...

^ a new block parameter/variable notation (Re: ruby-dev summary 17252-17356)
42266 [matz ruby-la] I don't think I'm smarter than you.  That's simply my fault that I
+ 42270 [akr m17n.org] Is a block parameter allowed as {<&c> ...} ?
| 42276 [matz ruby-la] I want to allow them.  But I've not yet decided.
+ 42287 [hal9000 hype] 17252-17356)
+ 42290 [kentda stud.] Not wanting to flog a dead horse, but I just wonder what the final word
| 42295 [matz ruby-la] Like |a,:b,c| (as in 5555), |a,b~,c| (as in 5592), or |a,{b},c| (as in
| 42309 [Dave Pragmat] How hard would it be to issue a warning when a block parameter shadows
| 42323 [matz ruby-la] Not much, if I decide so.  But I'm still not sure whether making
| 42327 [Dave Pragmat] Is that the design flaw, or it is that
| 42338 [matz ruby-la] def foo(obj)
| 42342 [Dave Pragmat] True, except if you _wanted_ to force coercion into an array in block
| 42373 [matz ruby-la] That makes the semantics small, but might hinder polymorphism.
+ 42337 [chr_news gmx] I am not sure - if I am reading this correctly but it used to be
| 42340 [decoux moulo] ...
| 42353 [chr_news gmx] I am not sure about your definition of  ``related'' but  replace
| + 42370 [matz ruby-la] Thank you for reporting, Christoph.
| + 42378 [decoux moulo] ...
|   42405 [chr_news gmx] Okay, I got it
+ 42339 [tobiasreif p] Perhaps Rite / Ruby 2+ is a chance to fix this and similiar issues?
| 42355 [chr_news gmx] Maybe it is actually possible to mix new and old behavior within
+ 42374 [avi beta4.co] Matz, what about making this distinction more general than just
| + 42376 [matz ruby-la] <akr@m17n.org> foresaw your idea in [ruby-dev:17346] a week ago.
| + 42394 [jean_hugues_] I agree about the relevance of that issue.
|   42397 [peter semant] I would like to raise the issue of programming style here. The
+ 42433 [bobx linuxma] I vote for these two at least.