106449-107693 subjects 106824-112265

man pages for ruby - was Re: Fundamental question
106660 [ahoward@no a] ~ > cat sample.rd
106671 [guslist@fr e] Linux Doc Book supports man pages. You can create the sgml with lyx  for

Altering method lookup
106663 [DocBoobenste] I'm working on a project based on a Smalltalk paper, and a part of it
+ 106664 [decoux@mo lo] Search for CLOS method combination in ruby-talk
+ 106665 [surrender_it] was'nt it doesNotUnderstand: ?
+ 106672 [martindemell] I'm not sure I understand this - why would you expect bar to be
  106690 [DocBoobenste] Thanks to everyone who posted suggestions and links. They are quite

Wo publishes Pickaxe II?
106668 [mvondung@gm ] Might have missed a message, but has it it been mentioned who is going
+ 106669 [mvondung@gm ] The "wo" in the subject line should have been "who". Dang, I should pay
+ 106670 [Stephan.Kaem] Dava and Andy. (see http://www.pragmaticprogrammer.com/)
| 106706 [childNOSPAM@] Marek Janukowicz
+ 106677 [dave@pr gp o] It's published by The Pragmatic Bookshelf, and will be available both
  106696 [mvondung@gm ] Thank you, this is excellent news. Lehmanns is perfect, that's where I

Dynamically replacing methods for efficiency
106675 [hal9000@hy e] I have an idea here, but I'm afraid of crossing the line from
+ 106676 [lyle.johnson] I have a nagging feeling that aspect-oriented programming figures in
| + 106678 [jbshaldane@h] Have you checked the AOP proposal?
| | 106681 [hal9000@hy e] Very interesting. In the universe of that page, the sets
| + 106679 [hal9000@hy e] That is probably true, but I am not necessarily looking for a major
| + 106685 [jim@fr ez .o] Sounds like adaptive programming (used alot in mobile
|   122661 [blydyuqx@se ] ...
+ 106680 [aero6dof@ya ] Exactly, you *never* want to code yourself into a corner where one
| 106688 [vjoel@PA H. ] IIRC, you'll get better performance if you arrange the tracer so you can
| 106726 [aero6dof@ya ] can
| 106729 [martindemell] If trace is set to ignore its argument, trace message will evaluate
+ 106682 [flgr@cc n. e] Maybe something like this will work reasonably?
| 106683 [rubylist0981] I'm totally new to ruby, but it seems like blocks are the right way to
+ 106684 [ahoward@no a] look at my source for arrayfields - i do exactly this.  the general idea is as
+ 106686 [sean@ce so t] Perhaps "states" would apply here.  Check out [ruby-talk:103859].
+ 106704 [bob.news@gm ] "Hal Fulton" <hal9000@hypermetrics.com> schrieb im Newsbeitrag

Using Ruby for hardware design/EDA?
106689 [ptkwt@ar cn ] I've seen a few posts recently where people seem to be using Ruby to
+ 106705 [mneumann@nt ] no, but I would use if it becomes a good "alternative" to VHDL etc.
+ 106816 [xiangyu.yang] questions

Bug? String literal %s{#{a}} cause irb to abort
106691 [alex@ve k. n] irb(main):001:0> s = "#{aaa}"
+ 106698 [matz@ru y- a] It's a bug in irb.  Thank you for the report.
+ 106700 [nobu.nokada@] Does this help?
  106711 [alex@ve k. n] The bug I reported earlier is not reproduced, but there is some other
  106715 [nobu.nokada@] $ ruby -e '%s' -e ''
  106718 [alex@ve k. n] You are right, it doesn't assign anything to the variable, just delays
  106721 [discord@ma .] irb(main):009:0> a=%s
  106723 [alex@ve k. n] Aha... now I understand.
  106725 [discord@ma .] In this test, I used a plus sign to indicate that the statement should
  106728 [alex@ve k. n] Thanks for the explanation. Acquiring such subtle understandings is what

106692 [vjoel@PA H. ] Does anyone know why tk_trace_variable, in tk.rb, is commented out in
106717 [nagai@ai ky ] I'm very sorry. It was my mistake.

Optimizing Ruby
106693 [jm@zz zz zz ] Anyone know of a Ruby book with a chapter devoted to optizing Ruby?  Or
+ 106703 [DocBoobenste] I'd be interested in such a collection too. Now that I've learned to
+ 106829 [bob.news@gm ] "Randy Lawrence" <jm@zzzzzzzzzzzz.com> schrieb im Newsbeitrag
+ 106963 [drejewic@ws ] In "Ruby Developer's Guide" published by Syngress you will find a

[ANN] midilib 0.8.3
106697 [ jimm@io co ] midilib is a pure Ruby MIDI library useful for reading and writing standard

ext/dl problem with unsigned char*
106701 [jm@zz zz zz ] The string I pass to a c function does not appear to get modified if I
+ 106702 [jm@zz zz zz ] Well...it seems just keeping it as "char*" in ruby seems to work fine
+ 106776 [ttate@tt ky ] Basically pointer types are treated as 'void*', but 'char*' is treated

IRB crashing silently with non ASCII characters?
106707 [surrender_it] I just noticed that if I type italian accented letters in a irb

Re: scripting language
106713 [rich@in oe h] Its very stable and I think would meet your needs.

Having Trouble with IO.popen example
106714 [ foo@fo .c m] I am new to ruby and I am reading the SAMS "Teach yourself Ruby in 21
106716 [msparshatt@y] this should be
106720 [ foo@fo .c m] Thank You:)  That did the trick:)

Problem with defined?
106722 [dirk.einecke] class CgiParamsToLocal
+ 106727 [flgr@cc n. e] Moin!
+ 106732 [bob.news@gm ] "Dirk Einecke" <dirk.einecke@gmx.de> schrieb im Newsbeitrag

Ruby require path issues
106724 [nick@ac iv h] How does one get $: to seamlessly include the directory of the parent
106810 [assaph@av ya] $LOAD_PATH << File.expand_path(File.dirname(__FILE__))

rfind-1.0: search-on-typing for all your files
106730 [martin.anker] I have created a little application that indexes a given directory,
+ 106733 [flgr@cc n. e] Moin!
| + 106737 [michael.fivi] </michael fivis>
| + 106761 [martin.anker] I already use Find.find, it's somewhere in src/hierarchy.rb. But I
+ 106750 [nick@ac iv h] If Microsoft used Ruby, Longhorn would already be out :).

[NUBY] Code sample from The Ruby Way
106731 [alex@ve k. n] class String
106734 [flgr@cc n. e] It looks like a bug -- the only Object that returns true on .nil? in

[QUESTION] : about class method
106735 [kurk_lord@no] can somebody tell me if a class method can call (or use) a instance method ?
+ 106738 [alex@ve k. n] WHICH instance of Foo would you expect it to call?
| 106739 [alex@ve k. n] Sorry, hit "send" too fast.
+ 106749 [dooby@d1 .k ] You could arrange the "bar" instance method so that it calls a class method
+ 106760 [kurk_lord@no] Thanks for all guys,

[NUBY] Ruby Way code for shuffling an array doesn't behave as expected
106736 [alex@ve k. n] One example in The Ruby Way claims that in the following snippet second
+ 106740 [msparshatt@y] This is due to changes in Ruby between v1.6.8 and 1.8
| 106742 [alex@ve k. n] So, Ruby iterators operate on the original collection and let you modify
| 106743 [discord@ma .] I'm not sure that an exception would be The Right Thing, but I do
| 106745 [alex@ve k. n] A smilie was inadvertently omitted in my earlier post. It should have
| 106746 [nospam@no pa] One alternative solution is to provide for all three options using a
+ 106741 [discord@ma .] It appears that #each is being affected by the slicing of the array
+ 106764 [flgr@cc n. e] By the way, if you just want to shuffle an Array you can also use the
  106770 [hal9000@hy e] And by the way, the code which modified the array while iterating

Ruby way to make a thumbnail of an AVI on Linux
106744 [cpine@he lo ] I'm looking for a way to take the first frame of an AVI and turn it into a thumbnail.  The program is running on my linux server.  I tried rmagic a while back (which I love, BTW), but it didn't work... something about some kind of bad chunk type or something, IIRC.  Does anyone know of any way to do this?
106775 [cyclists@nc ] Thanks for the compliment!

Fine Grained Security in Ruby 2.0?
106747 [nospam@no pa] Are there plans to provide more control over the security options
+ 106765 [flgr@cc n. e] Moin!
| 106766 [surrender_it] +1 from me.
+ 106768 [matz@ru y- a] No plan.  Just because I don't have any good idea for fine grain

Request: Lib to  create HTML E-mail?
106748 [jamesUNDERBA] I'm looking for code to create HTML E-mail.  I'd rather not re-invent
+ 106769 [khaines@en g] I do HTML emails regularly, using tmail.  They, however, are simple straight
+ 106773 [opengeometry] For dis/assembling MIME email, look over
  106779 [jamesUNDERBA] I shall do that now!

106751 [cmills@fr es] I was wondering what the purpose of the DUPSETUP() macro is in ruby.h.
106757 [dooby@d1 .k ] I guess it may, eventually, be replaced by rb_obj_init_copy
+ 106758 [dooby@d1 .k ] Sorry, to save someone correcting me ...
+ 106777 [cmills@fr es] Thanks for the response.
  106808 [dooby@d1 .k ] Yes, I think, because it's a part of constructing an empty object

REXML : add text to element without temp variable?
106752 [cdbaby@gm il] <music>
+ 106763 [aengstrom@gn] doc =3D Document.new
+ 106778 [cdbaby@gm il] Thanks everyone for your help.
  106795 [gsinclair@so] Or some more energetic music!? :)

other meanings of ( and ) aka Lispy usage
106753 [nick@ac iv h] What's the meaning of ()  outside of being function parameter delimiters
+ 106755 [discord@ma .] First, there is the expression grouping. That is what lets you say (23
| 106772 [nick@ac iv h] I think "statement grouping" clears it up for me. I guess in another
+ 106756 [jamesUNDERBA] Well, they help define evaluation order for expressions.
  106774 [nick@ac iv h] Thanks. The code example is enlightening.

Ruby Debugger options: v[ar] g[lobal] ...
106771 [jay@fl ei gr] I am confused about a feature of the Ruby debugger. The debugger documentation lists all the
+ 106811 [jay@fl ei gr] Tonight I fooled around with the debugger, and I found that the v[ar] g[lobal] and v[ar] l[ocal]
+ 106936 [matz@ru y- a] I can't reproduce your problem.  More information please.
  + 106951 [bob.news@gm ] "Yukihiro Matsumoto" <matz@ruby-lang.org> schrieb im Newsbeitrag
  | + 106952 [decoux@mo lo] /usr/local is 1.8.1, r182 is 1.8.2
  | + 106967 [jay@fl ei gr] ra88it:~ jcotton$ uname -a
  + 106965 [jay@fl ei gr] I compiled and installed Ruby 1.8.1 with the default configuration on a G3 PowerPC running Mac OS

Looking at a Class's source
106780 [DocBoobenste] Is there a way to look at the source of a class? E.g.
106787 [halostatue@g] Not without going back to the actual source files. Ruby does not keep
106788 [DocBoobenste] Alright, understandable. Now the one question that remains (sorry for
106789 [halostatue@g] I'm not understanding your question. Ruby interprets the code into an
106794 [DocBoobenste] Aha. I'll look into it, thanks.

ruby idiom for parsing function arguments?
106782 [sean.zuzu@gm] this may be a silly question, but can someone provide for me the ruby
106783 [cc1@ce .w st] optparse, getoptslong, getopts::declare are all for parsing commandline
106803 [sean.zuzu@gm] 1.) information on this looks scarce. other than just reading
+ 106809 [halostatue@g] foo(bar, baz, :a => a, :b => b)
+ 106830 [bob.news@gm ] "zuzu" <sean.zuzu@gmail.com> schrieb im Newsbeitrag
  106831 [sean.zuzu@gm] word.  http://c2.com/cgi/wiki?DuckTyping
  + 106832 [assaph@av ya] to the
  + 106833 [surrender_it] look in the archives of the group for exact definition. I think the
  + 106835 [bob.news@gm ] "zuzu" <sean.zuzu@gmail.com> schrieb im Newsbeitrag
  + 106871 [aredridel@nb] In essence, I don't: I don't ask what class and object is, I tell it to

Current method
106784 [DocBoobenste] How could I know which method (if any) is currently being executed? E.g.
106785 [jamesUNDERBA] Here is an example based on something I believe Rick Kilmer posted here
+ 106786 [DocBoobenste] Hmm. So there is no built-in way of doing this? What about lambdas?
+ 106801 [flgr@cc n. e] Using Binding.of_caller (available from

ruby-1.8.2-preview1-i386-mswin32.zip (2004-07-16)
106802 [nospam@no pa] ruby-1.8.2-preview1-i386-mswin32.zip (4,732KB)

RubyGarden Wiki spammed again
106804 [cyclists@nc ] Subject says it all.

ANNOUNCE: #ruby.dk @ irc.freenode.net
106807 [madsen@li le] Actually this is a re-announce, we're just starting to get bored. :-)

Ruby equivalent of C# StringCollection container?
106812 [no_replies@f] What is the Ruby equivalent of the C# StringCollection container?
106813 [rich@in oe h] a  = ['rich', 'dave', 'tom']
106917 [no_replies@f] Richard,
106957 [JRoshan@bl .] ...

Vim-Ruby [Was: Anyone tried Arachno Ruby?]
106818 [harryo@qi so] I figured as much.  In fact, I was sure I'd used it at one point, but failed to find it when I looked recently.
106836 [djkea2@mu ca] Yes; too many hours of my life typing sourceforge!  :-)

Which compiled language is closest to Ruby?
106819 [nospam@no pa] I am currently using C++ as my compiled language but fell in love with
+ 106820 [jgb3@em il b] Well, there's Groovy. It depends on what you mean by "compiled". Groovy
+ 106821 [mailinglists] You can find this only in the area of functional languages. I don't
| 106827 [just-for-new] Sather comes to my mind. It seems it is not longer supported but at
+ 106825 [martindemell] I've been looking at OCaml recently, and it seems like a pretty decent
+ 106834 [surrender_it] Look for some kind of smalltalk. I think they're usually jitted like
+ 106849 [grzegorz@pi ] Apart from ML dialects such as SML or Ocaml, there are Lisp variants. These
| 106873 [rcoder@gm il] If you're considering Lisp, you might take a look at Goo -- it's an
+ 106924 [cc1@ce .w st] While technically interpreted from byte code C# in version 2.0 will have
| 106938 [surrender_it] and the ICollection api seems quite similar to Enumerable in C# 2
| 106946 [JRoshan@bl .] ...
+ 106930 [schnitkerAff] Isn't that obvious?  C++, of course.
| 106950 [bob.news@gm ] "Uwe Schnitker" <schnitkerAffenschaukel@sigma-c.com> schrieb im
| 107056 [schnitkerAff] No.
| + 107067 [rasputnik@he] First off, I'd admit I'm not a C++ programmer at anything other
| + 107075 [bob.news@gm ] "Uwe Schnitker" <schnitkerAffenschaukel@sigma-c.com> schrieb im
|   + 107152 [schnitkerAff] <SNIP>
|   + 107153 [schnitkerAff] <SNIP>
|     107169 [bob.news@gm ] "Uwe Schnitker" <schnitkerAffenschaukel@sigma-c.com> schrieb im
|     107173 [mailinglists] Look at Objective-C which is also full backward compatible to C and
|     + 107175 [surrender_it] or maybe a revolutionary step backward :)
|     + 107181 [nospam@no pa] I read that the real reason C++ is complex is because it is a product of
|     + 107183 [bob.news@gm ] "Lothar Scholz" <mailinglists@scriptolutions.com> schrieb im Newsbeitrag
+ 106947 [ged.byrne@gm] For a fully object oriented compiled language you might want to take a
| 107438 [snowzone5@ho] the windows version is a 60+ meg download...and i think it mentioned
| + 107459 [michael.camp] Not sure where you're getting some of those numbers, but a
| | + 107462 [jgb3@em il b] I believe he is referring to the size of the .NET runtime, which must be
| | + 107496 [nospam@as lk] Will that .NET program run on a machine without .NET runtime already
| + 107507 [ged.byrne@gm] Eiffel Studio is a large download, but that is an entire development
+ 107061 [shugo@ru y- ] Did you tried Sather?
+ 107087 [jfh@ci e. fl] I haven't seen anyone mention it, but I believe Objective C has a similar
+ 107217 [avi@be a4 co] What do you really mean by "compiled"?  Are you interested in
| 107243 [nospam@no pa] Great questions.
| 107264 [avi@be a4 co] Ok.  The closest thing to Ruby, then, is almost certainly Smalltalk/X,
+ 107292 [wsdngtmp@on ] D (http://www.digitalmars.com/d/) is very similar to C++ and has
  107313 [rcoder@gm il] You also might consider using Objective-C: easy to link into C

Ruby Specification
106823 [drossruby@ya] Request. Can someone create a ruby specification? I
+ 106826 [mailinglists] That's a typo, the monster is  "eval.c".
+ 106828 [nospam@no pa] Wow. I wish you the best of luck!
+ 106845 [surrender_it] I understand your reasons, but I think you can look at parse.y and
| 106859 [drossruby@ya] I hope they are not SCO. I refuse to look at any
| + 106872 [mailinglists] You can have all in one interpreter binary, even DLL's. That is for
| + 106879 [surrender_it] yes but I intended: "you can have your own kind of gc, because ruby
| | 106882 [msparshatt@y] I think changing to a reference counting GC system would change the
| | 106894 [surrender_it] CPython does reference count, while JPython should use the jvm's GC.
| | 106896 [msparshatt@y] The problem would come if someone did release an alternate
| | + 106898 [vjoel@PA H. ] In my understanding, ruby makes no guarantees about memory management,
| | | 107042 [quixoticsyco] Technically there is not even a guarantee that an unreferenced object
| | | + 107044 [vjoel@PA H. ] True. I was forgetting that the GC is conservative. So "eventually" may
| | | + 107045 [mailinglists] Arachno Ruby as a larger program is using the Boehm Weisser GC. That
| | |   + 107048 [nospam@no pa] Fascinating stuff.  You sound MUCH smarter than Lothar of the Hill
| | |   | 107050 [hal9000@hy e] Haha, now, play nice. Lothar is a sharp guy. Though LOL at Mike Meyers.
| | |   + 107063 [Ruben.Vandeg] Do you use it as a drop-in replacement for "malloc" ?  Because, from
| | |     107064 [mailinglists] Yes i only changed malloc and calloc.
| | + 106907 [surrender_it] agreed, but given that current alghoritm is known (mark&sweep, unknown
| + 106897 [jamesUNDERBA] Not sure why you are so reluctant to mention an OS, or look at certain
+ 106883 [billk@ct .c ] Please don't take this as a criticism.  I am asking
  + 106885 [drossruby@ya] I want to make sure my code stays under the BSD
  | 106931 [madsen@li le] [snippety-snip]
  | 106939 [surrender_it] I don't think people is being "damn negative". I think everybody would
  + 106889 [jeremy@ch os] (Disclaimer: the isn't really (directly) about Ruby, so you may think
    + 106890 [kristof@vl e] I am not a lawyer, but I believe this is not correct.
    + 106895 [billk@ct .c ] Certainly.  I thought that copyright law (IANAL) distinguished