72661-75237 subjects 73034-73795

Selector Namespaces (was Re: ruby-dev summary 20201 - 20315)
72882 [dan@si he or] I've already got perl and parrot's internals wedged into my brain--if

Ruby-SWIG question: wrapping function objects with blocks
72883 [szegedy@no p] I am trying to use SWIG to generate Ruby wrapper for a
72887 [0bz63fz3m1qt] Do you want something like this ?
72914 [0bz63fz3m1qt] Have you looked in the examples supplyed with SWIG ?
72916 [0bz63fz3m1qt] OK.. I did it without SWIG..  tell me if you can use it ?
73129 [szegedy@no p] Sorry for the long delay, I was on holiday.

Infinite Loop
72884 [ gm@na el gr] I 've written a fairly big ruby programm that works mostly ok.
+ 72886 [0bz63fz3m1qt] In interactive GUI applications I tried similar things. In console
| 72889 [bob.news@gm ] "Simon Strandgaard" <0bz63fz3m1qt3001@sneakemail.com> schrieb im
+ 72893 [ahoward@fs .] /usr/home/howardat/eg/ruby > ruby -e 'def foo;foo();end; foo();'
  + 72905 [orion2480@ho] How about using the ruby profiler??
  | 72937 [martindemell] That seems to be the problem :)
  + 72939 [ gm@na el gr] many thanks for the usefull advice, I 'll try it.

Answer on 'lists.bttr.org unreachable?'
72892 [ jupp@gm .d ] This message goes to ruby-talk and Ralf Geschke (technical contact
72899 [ralf@ku rb s] Thank you very much for this translation. :-)
72934 [mneumann@nt ] The French ruby mailing list is hosted by ruby-lang.org.
72992 [ralf@ku rb s] No, and I have no problem with hosting the list by

Ruby 1.8.0 net/http bug
72894 [urban@oo s. ] require 'net/http'
+ 72895 [ian@ca ib n.] resp, data = h.get('/index.html', nil)
| 72900 [hal9000@hy e] Ah, that's a good idea.
| 72901 [dave@pr gp o] Even better perhaps would be
| + 72902 [chad@ch df w] I was just typing up the same code when I saw your mail come in.  I
| + 72926 [aamine@lo er] But it is not only change.
| | 72927 [dave@pr gp o] True, but adding a to_ary will fix the most common problems, and is
| | 72930 [aamine@lo er] OK, I have added Net::HTTPResponse#to_ary.
| + 72963 [urban@oo s. ] Thanks for the help everybody!
+ 72896 [rodrigo.berm] this nomenclature honest and refreshing.  "Bug" |implies that the
+ 72897 [hal9000@hy e] It's a change in the interface, breaking old code.
+ 72898 [dave@pr gp o] It now returns a single object, with the response contents accessible

<<Bad credit loan>##### qwms cocfdcyzsurgny
72906 [eooqtybt@in ] ...

Syck 0.35 + YAML.rb 0.60 -- the 1st stable release
72907 [ruby-talk@wh] ...
+ 72951 [lyle@us rs s] Just did a cvs update (for Ruby 1.8) and a clean build. For some reason
+ 75182 [rz@li ux m6 ] ruby.h:#define INT2NUM(v) rb_int2inum(v)
  75196 [ruby-talk@wh] If you're comfortable editing the source, then you can just replace with
  75282 [rz@li ux m6 ] done that already :)
  + 75308 [ruby-talk@wh] Hard to say.  What's the data like that you're dumping (calling
  | 75353 [rz@li ux m6 ] Nothing special, I have inserted Marshal.dump to get the exact
  + 75311 [n.gilbert@so] Could your segmentation fault be due to  the same problem as in the
    75383 [rz@li ux m6 ] it could be the same or related, but so far all symptoms
    + 75387 [batsman.geo@] * comment the following lines in signal.c (around line 736)
    + 75398 [ruby-talk@wh] I tested thousands of operations loading/dumping the sample file you gave me.

Problem with "require" stmt in "test-first " tutorial
72908 [RLMuller@co ] "Test First, by Intention" at
+ 72910 [0bz63fz3m1qt] your 'Sum' class should be stored in a file named 'summarizer.rb'
+ 72911 [nobu.nokada@] RUBYPATH is used only with -S option but doesn't affect
+ 73013 [RLMuller@co ] Thank you both for your responses.
| 73078 [sdmitry@lr .] I'm just a testing newbie, but i think that no output should be produced from
| + 73086 [phlipcpp@ya ] from
| + 73087 [RLMuller@co ] I won't "kick you" even though, IMHO, you're wrong :-).  The output
+ 73089 [gour@ma l. n] This article provides links to online version of the Pink book but they are dead.
  73090 [jj5412@ea th] Works okay for me.
  + 73093 [gour@ma l. n] Well, I'm wonder hot it's possible.
  | 73099 [batsman.geo@] Is this one OK?
  | 73102 [gour@ma l. n] Well, this one is MUCH better :-)
  + 73097 [jj5412@ea th] Sorry, my reply was a bit hasty. I clicked on the link in your email and it

Syck / Yaml example
72912 [shanko_date@] Yipee!
72913 [ruby-talk@wh] The installer is a week or so behind of CVS.  You'll have to wait for an

Array = Hash.sort ... but sometimes not
72918 [philippe.des] (sorry for my poor English : I'm French)
+ 72921 [brett_willia] mots_tries = Array.new
+ 72925 [dooby@d1 .k ] Bienvenue.

RDoc and non-ascii encodings
72920 [dave@pr gp o] I'm trying to find out: does RDoc work OK on files that have non-ASCII
+ 72929 [ oct@zo .o g] I tried a simple class with a few french accented letters (in utf-8) and
+ 72959 [mikkelfj-ant] In Ansi, danish characters work, but in UTF-8 they don't. It's probably the
  + 72960 [mikkelfj-ant] the
  + 72961 [dave@pr gp o] Hmm - by the time that got to my e-mail program it had been converted to

ANN: ruby-goto, your evil for the evening
72922 [rpav@nw in .] OK, so I was feeling evil last week sometime.  Some people were claiming
+ 72928 [john.carter@] Now for your next trick... A "come from".
| + 72931 [rpav@nw in .] Actually, COME FROM isn't equivalent to Observer, as the former is an
| | 72932 [mwilson13@co] I think somebody should tell Ryan that something _useful_ cannot be
| | 72956 [guslist@fr e] I think he is riped enough to takle the great task of implementing
| | 72957 [ljz@as as .c] In addition, now that there's a GOTO statement, for symmetry, we need
| + 72949 [joey@jo yg b] Already been done. Intercal has a "come from" statement. :-)
+ 72946 [jweirich@on ] This is great!  But the really scary thing is that I was thinking about
  72962 [rpav@nw in .] Yeah... one thing I was trying to show at the time was the fact that

Bytecode Compiler
72935 [sean@RE OV M] I'm a little bit behind on the Ruby news, so I apologize if this was covered
+ 73025 [spam@de k. k] there *was* one... but it was for version 1.4 (or something), atm there
+ 73079 [george.marro] I am!
  73416 [ser@ge ma e-] That's great news, George!  Have you run any benchmarks on your code yet?

Infinite Loop
72938 [ gm@na el gr] my application is a web application server. We are heavily using
72952 [0bz63fz3m1qt] More info please.. im terrible at guessing :-)

[ANN] VAPOR 0.06, Transparent Persistence to PostgreSQL
72940 [oliver@go .c] I'm in the process of writing (yet another) persistence framework
72944 [B.Candler@po] If it uses the DBI API, is it possible that it may work with other SQL
+ 72948 [spam@de k. k] not very likely... any sql the library generates will most likely have
+ 72950 [bolzer@in or] The current backend (that handles Tuples) uses PostgreSQL's support for

Ruby 1.8.0
72941 [ gm@na el gr] I realize you are working etremely hard for the release (and we are
72954 [matz@ru y- a] It will take a few more weeks before the final release.
72984 [info@mj is d] thanks for all your work.

ruby running as daemon ?
72945 [Ruben.Vandeg] Is it true that ruby runs as a daemon if it's running without a terminal

[ANN] sql-serialize 0.0.3 (was: [ANN] VAPOR 0.06, Transparent Persistence to PostgreSQL)
72947 [spam@de k. k] This shounds like a great idea! I will go right ahead and see if you
73004 [childNOSPAM@] I'm writing such a library too ;) It's not yet released, but hopefully
+ 73012 [surrender_it] this sounds really interesting.. what can I say.. release fast release
+ 73024 [spam@de k. k] hmm... someone should take this code and see if it could be used in a
  + 73027 [B.Candler@po] dbi.transaction do
  | 73030 [spam@de k. k] uhm... what are you thinking about specifically?
  | 73042 [B.Candler@po] Absolutely any exception. NameError or ValueError for programming errors you
  | 73058 [spam@de k. k] if a nameerror, typeerror or the like happens then hopefully my program
  | + 73060 [sroberts@un ] You can rethrow the exception, after rolling back the transaction, can't you?
  | + 73083 [B.Candler@po] Not if sql-serialize is meant to be a general-purpose library. The main
  |   73091 [spam@de k. k] I plan (and hope) that others will use this... but while developing this
  + 73131 [bolzer@in or] # had no access to news over the weekend+holyday
    73158 [spam@de k. k] hmm... how are you maintaining the dirty state? using #hash at
    73213 [bolzer@in or] Couldn't find a way to automagically detect that instance variables have
    + 73948 [cyborch@de k] that would help people like us out *alot*
    | 73954 [mwilson13@co] postgresql has a boolean datatype and supports user-defined datatypes,
    | 73970 [spam@de k. k] For now I'm going for the lowest common denominator for mysql,
    + 73964 [cyborch@de k] that would help people like us out *alot*

make install question
72953 [jim@fr ez .o] I am about 90% done with creating a binary install

Pkg for getting web pages
72958 [jim@fr ez .o] What is the 'best' package for getting pages
+ 72965 [gfb@to es ft] wget is good enough: http://www.gnu.org/software/wget/wget.html
| 72968 [jim@fr ez .o] Thanks. I was actually looking for a ruby pkg, but this
| 72970 [gfb@to es ft] Oops, I did not get it from your post. But anyway, Ruby is great for
| 73010 [ jupp@gm .d ] Saluton!
+ 73001 [B.Candler@po] There was one which was announced on ruby-talk around the beginning of this

RUBY, CGI and objectts
72964 [stedak@ch rt] Perhaps I'm doing this wrong?
+ 72966 [0bz63fz3m1qt] You are not 'plus'ing the <td> elements.
| 72976 [stedak@ch rt] Ok that worked but the code below gives garbage with objects.
| 72980 [0bz63fz3m1qt] cgi.table do
+ 72967 [0bz63fz3m1qt] Try 'join' the elements .. :-)
  72969 [0bz63fz3m1qt] @cgi.tr { row.collect { |cell| @cgi.td {"#{cell}"} }.join }
  72971 [0bz63fz3m1qt] class Array

Using SciTE 1.53 on Windows
72972 [qawaly@ch ll] Can version 1,53 be used instead of the 1.41 that comes with the Windows
73007 [bobx@li ux a] Each installation of SciTE will have its own "ruby.properties" file.
73008 [qawaly@ch ll] I tried that, it gives Help & Go, but no Compile or Build.
73051 [bobx@li ux a] Right. For Ruby there would be no compile and build. SciTE will always show

Status of ruby-expect?
72973 [hinoue@cs un] I'm running ruby 1.6.7 and am trying to use the ruby-expect package
72996 [contact@ma k] That is interesting. Currently I'm playing a bit with expect (not only

regexp across multiple lines
72974 [jim@fr ez .o] I am trying to strip <script>blah</script> statements,
72983 [dooby@d1 .k ] ? after .* makes it less greedy ...

[RCR] join block
72975 [0bz63fz3m1qt] [1, 2, 3].join {|x| "<td>#{x}</td>"}
+ 72977 [vjoel@PA H. ] What, you don't like the utter simplicity of the following? ;)
| + 72978 [michael_s_ca] You lost me here.  When iterating through the elements, what are x
| | 72981 [vjoel@PA H. ] I'm thinking the return value of the block should be used in the same
| | 72982 [pit@ca it in] Maybe, but I, too, would like to use the block form as you suggested.
| + 72979 [emschwar@po ] I can't figure out how that would happen.  I'd think you'd end up
| + 73003 [0bz63fz3m1qt] This is simple.. but when there is 30 lines between the map/join it
+ 73056 [0bz63fz3m1qt] I know this has been discussed before, but I don't
  73065 [martindemell] Don't think the thread reached a definite conclusion, but I'm with Joel
  + 73068 [michael_s_ca] What do you do with an odd # of elements?
  + 73070 [0bz63fz3m1qt] So far I cannot think of any cases where I need to "join-pairs into a
    + 73072 [vjoel@PA H. ] I don't have any compelling examples. It's just that if someone said
    | + 73084 [0bz63fz3m1qt] POLS depends on your preferences and intuition.. I guess peoples intuition
    | + 73085 [0bz63fz3m1qt] I think the interface of Array#join differs too much from the original
    | + 73115 [androflux@re] (Assuming you really need this). Otherwise #join with a block would just be a
    | | + 73116 [0bz63fz3m1qt] This is what its all about :-)
    | | | + 73117 [gfb@to es ft] In this particular case why your $log (whatever it is) cannot handle adding
    | | | + 73199 [androflux@re] I have yet to be overcome with the ugliness of the second method. :-)
    | | |   73200 [0bz63fz3m1qt] Any decent log-system is capable of prefixing.. but thats a
    | | + 73121 [vjoel@PA H. ] I wouldn't vote for it either. It looks like bloat to me.
    | |   + 73128 [hal9000@hy e] be a
    | |   + 73182 [ jupp@gm .d ] Saluton!
    | |     73219 [0bz63fz3m1qt] please add word(s) if it seems to be missing :-)
    | + 73248 [dooby@d1 .k ] One option would be to pass the sepString into the block.
    + 73080 [martindemell] "{" << [1,2,3,"a","b",5,"c"].join {|x,y|
      73082 [0bz63fz3m1qt] OK.. You win, I loose.
      + 73088 [michael_s_ca] Maybe it's because I didn't have it "natively" anywhere, but I can't
      + 73094 [martindemell] I'm not denying the usefulness of a cjoin method, just saying that
      + 73106 [wkb@ai ma l.] Simon,

What should "class ... end"  and "def ... end" return?
72985 [itsme213@ho ] Are they expressions? If not, why not?
+ 72989 [nobu.nokada@] "class" returns last value, and "def" returns nil in 1.8.
| 73002 [B.Candler@po] myklass = class Foo
+ 73006 [ged@Fa ri MU] myClass = Class::new( MySuperclass ) {
  73016 [itsme213@ho ] Thanks for explaining the rules. But I am curious about why these work

multiple blocks or proc arguments to method
72986 [itsme213@ho ] Array#collect_if ( &predicate, &collector )
72990 [hal9000@hy e] This should work, but the calling syntax
73015 [itsme213@ho ] Thanks. I was confused about the use of "&".
73039 [decoux@mo lo] Do you want to do this ?
+ 73049 [sdate@ev re ] [excellent example snip]
| 73269 [qrczak@kn .o] Probably because ( ) wants to be written after an expression.
+ 73641 [theschof@cs ] #<UnboundMethod: A(A)#a>
  73661 [decoux@mo lo] 1.8
  73717 [theschof@cs ] Sorry I meant accessor method.  Specifically, if the instance method
  + 73749 [decoux@mo lo] Sorry, but I don't understand the use of a private accessor method.
  + 73758 [batsman.geo@] Ruby always behaves "polymorphically" (sp?). It's going to send the

Relation class
72987 [itsme213@ho ] Does anyone know of a Relation class with methods such as
+ 72994 [ptkwt@sh ll ] I don't know of one, but it would be nice to have one...
+ 72999 [batsman.geo@] If the relation is a function (in the mathematical sense) you can

Any notification mechanism for Ruby questions
72988 [itsme213@ho ] Is this the best place to post Ruby questions? Is ruby-talk better? Do
72991 [hal9000@hy e] ruby-talk and comp.lang.ruby are mirrored both ways.
+ 72998 [0bz63fz3m1qt] Frequently I experience glitches on comp.lang.ruby where my postings never
+ 73000 [batsman.geo@] Message scoring, a couple mappings and perhaps some Ruby code could make

<<Bad credit loan>#####  ba d c iywulmsyp
73009 [GovtGrants48] ...

Building ruby under Windows
73014 [yura@op r. o] I am trying to build ruby from CVS using VC++.
73022 [dooby@d1 .k ] You could try searching your disk for files containing HAVE_GETGRENT;
73023 [yura@op r. o] HAVE_GETGRENT is not defined.  The problem is not with etc.c but with
73026 [dooby@d1 .k ] I fear you've hit 'work in progress'.
73028 [yura@op r. o] Thanks, this one compiles, but it is 1.6.8 and I wanted 1.8.0 :(
+ 73031 [dooby@d1 .k ] Sorry Yura, I've mailed ruby-1.8.0-2003.05.15.zip to you because
+ 73033 [nobu.nokada@] Nobu Nakada
  73036 [dooby@d1 .k ] OP needed a revision before last Friday's additions ...
  73038 [nobu.nokada@] Try this patch.
  73040 [dooby@d1 .k ] [snip diff]
  + 73046 [nobu.nokada@] Exactly.
  + 73050 [yura@op r. o] Thanks Nobu, it did the trick.

cast iron Christmas tree stand
73021 [fengyuana198] We produce cast iron Christmas tree stand.
73054 [sdate@ev re ] I know Ruby is powerful, but I did not know you could produce  "cast iron
73064 [ jupp@gm .d ] Happy Whitsun,

Problem compiling mysql-ruby
73029 [info@mj is d] I just downloaded mysql-ruby-2.4.4
73055 [ian@ca ib n.] ...
73057 [info@mj is d] thanks. now it works.

raa-install feature request
73032 [sdmitry@lr .] I'm new to raa-install, but i'm already missing one feature - package list
73035 [jweirich@on ] Rake has moved!  You can find it at ...
+ 73037 [sdmitry@lr .] Thanks!
+ 73098 [ruby-talk@wh] For raa-install, we generate smaller, compressed feeds from the feeds at