29318-29997 subjects 29668-31775

[ANN] RubyGems 0.4
29493 [RyanL@mo ai ] After a long delay I am now proud to present the release of RubyGems
29622 [schneiker@ju] Please consider including a couple of sentences in _every_ announcement
29635 [list@ch om t] Please also do not assume people are coming from a certain language,

C extensions to Ruby: classes vs. types
29494 [taw@us rs so] I have problems with Ruby classes in C
+ 29502 [nobu.nokada@] README.EXT can't help you?
+ 29507 [matz@ru y- a] static VALUE

Re: Can't yield from Proc
29496 [timsuth@ih g] Thanks, that rationalises the behaviour nicely. I suppose in a language

TCP Sockets with Ruby 1.6.5 (2001-09-19) [i386-cygwin]
29499 [paulvallance] Dear somebody,
29498 [harryo@zi wo] No idea whether this is important, but I note you have no "\n"
29500 [paulvallance] thanks, of course  I forgot the CR LF on the end (doh!). Much appreciated
29509 [list@ch om t] \n is just a LF, \r is a CR.  So, if you need a CR LF you need to end

Need windows extension dll help
29504 [mchahn@fa el] I have been trying to build and run ruby-gtk in windows for some time.  This
+ 29525 [bdelmee@ad a] Mark, this was actually my reply to one of your earlier posts.
| 29551 [mchahn@fa el] Thanks for the reply and the links.
| 29576 [bdelmee@ad a] I *think* the gtk dll's are the same, whereas the ruby module probably
| 29593 [mchahn@fa el] Thanks very much.  Loading the exact set of ruby, ruby-gtk, and gtk from
| 29632 [ballabio@ma ] Bye,
+ 29579 [ianrae88@ya ] MSVC's libraries contain a default version of DLLMain if your code doesn't

Embeddability (was: Python Popularity: Questions and Comments)
29505 [claird@st rb] Yes, and yes.
29542 [benoit.cerri] Vim's source distribution comes with ruby support, it still needs to be
29633 [kpj@kk .n t.] Where's the patch please ?

Problem with require 'nqxml/treeparser'
29510 [bbutton@ob e] I actually found this problem trying to include something out of
+ 29511 [chadfowler@c] Brian, what NQXML version do you have installed?  You could also try
+ 29548 [ jimm@io co ] I'm running 1.6.5 as well. I don't see the same problem. I created a file
  30399 [nahi@ke na t] Be careful that my MUA(Outlook2k) folds lines at
  30418 [ jimm@io co ] NaHi,
  30423 [nahi@ke na t] Unofficial interim package 1.1.3p1 is in

How to sort  " sort -k3,3   -k9,9  file"
29512 [desibtis@ho ] How do I sort an array of lines having fix number of columns without
29513 [nobu.nokada@] array.collect {|s| [s[2], s[8], s]}.sort.collect {|s| s.last}
29562 [desibtis@ho ] Nobu,
+ 29569 [nobu.nokada@] Do you want to sort array itself?  Then, put !'s at the ends of
+ 29666 [desibtis@ho ] I did just like what you suggested and I got two numbers (int) followed by
  29687 [nobu.nokada@] Sorry that I missed what you wanted.  Since -k option to sort

C extensions: ruby and C strings
29515 [taw@us rs so] 1) Should I free string here or is it used as string buffer by Ruby ?
+ 29516 [decoux@mo lo] Yes you must free it, ruby allocate a new string with rb_str_new2
+ 29517 [matz@ru y- a] rb_str_new2() copies c string, so that you have to free cstr.
  29519 [taw@us rs so] Is there any method for creating Ruby string from C string without
  29520 [matz@ru y- a] No (not yet).  I allocate string first instead of malloc, then use its

29521 [kumyr@ho ma ] ...

30 Language Implementations, 25 Benchmark Tests
29522 [vladare@ya o] "The Great Computer Language Shootout" is a benchmark comparison of a
29567 [dan@si he or] Are the ruby examples reasonably correct? I'm trying to line up real

Ruby in spanish
29523 [vruz@di ip o] ...
29623 [schneiker@ju] [Impressive accomplishments snipped.]

New Rubygarden poll
29541 [Dave@Pr gm t] stay where it is                 26.28 % (41)
+ 29543 [elanthis@aw ] Hrm, I think it could have been phrased better.  While I primarily use
| + 29544 [cbroult@sa i] ...
| + 29546 [Dave@Pr gm t] Give me some words....
|   + 29549 [elanthis@aw ] A) Just POSIX
|   | 29552 [Dave@Pr gm t] OK - I'll run two polls. This one stays as it is: I use Ruby primarily
|   | 29577 [gehlker@fa t] Better but not quite perfect. I assume the "effort" needs to go to Windows
|   + 29550 [1009991474.4] Ruby Support for WinNT/2000 is
|   + 29585 [elderburn@mi] The relevant question is not current platform usage (however, the
+ 29553 [matz@ru y- a] I will remove [ruby-talk:12345] tag from the subject, somewhere in
| 29556 [hal9000@hy e] This is, of course, just my opinion.
| + 29560 [Dave@Pr gm t] From what I understand, as an Outlook user you currently don't get
| | + 29574 [nobu.nokada@] I have a question.  Can Outlook really construct thread trees
| | | + 29575 [mchahn@fa el] You can only sort by subject.
| | | | + 29578 [nobu.nokada@] Thank you.
| | | | | 29583 [mchahn@fa el] Definitely.  Reading messages by thread is much easier to follow than by
| | | | | 29588 [nobu.nokada@] But, just sorting by subject, when a tree grows and comes to
| | | | | 29590 [mchahn@fa el] I know which messages I have read in each subject.
| | | | | 29600 [nobu.nokada@] Considering this tree, 22 messages have same "New Rubygarden
| | | | + 29599 [hutch@xa pl ] I don't know about Outlook Express, but Entourage and Outlook both have a
| | | + 29629 [mikkelj-anti] Outlook Express can handle a subject that has been changed like "newsubj
| | |   29646 [schneiker@ju] Is there anyone here that also follows (or posts to or searches)
| | + 29586 [elderburn@mi] FWIW I ~like~ the message numbers. When they are referenced in the text
| |   29587 [hal9000@hy e] Kent, your comments pretty much summarize
| + 29565 [billk@ct .c ] Since the problem most often voiced about the numbered subjects
+ 29582 [wsobel@Ba ra] For all the unfortunate Outlook users in the world, I offer a small
  29584 [mchahn@fa el] Thanks.
  29591 [wsobel@Ba ra] I can not think of an easy way to do this. I looked through the CDO

RDoc now displays source
29545 [Dave@Pr gm t] I've no idea if this is useful, but the latest RDoc now has a
+ 29547 [cbroult@sa i] ...
+ 29554 [paul@at es .] What if I don't have javascript turned on?  Can I still see the source
| 29559 [Dave@Pr gm t] Currently, no. I'm hoping some web wizard will give me the incantation
| 29563 [elanthis@aw ] I don't know what code you're refering to, but doing what you just said
| 29571 [Dave@Pr gm t] Thanks - that's what I needed.
+ 29581 [W.L.Kleb@La ] Excellent; this is exactly the thing that I found lacking on
+ 29589 [mikkelj-anti] Now all you need is to supply the source window with edit functionality and
| 29985 [gnhurst@hu s] The popup window is nice.
+ 30092 [jbrunjes@ct ] Dave, thanks very much. Simple Markup and RDoc are exciting tools!
| 30110 [Dave@Pr gm t] incorrect. Unless someone speaks up, I'll change it shortly.
| + 30153 [jbrunjes@ct ] It also occurred to me after I made the post to mention that it would
| | 30155 [Dave@Pr gm t] Prior to making the change to treat internal '_'s as plain text, this
| + 30823 [jbrunjes@ct ] Thanks very much, I like the way this works now!
+ 30400 [nahi@ke na t] Happy New Year from Tokyo, Japan... a delay of a week.
  30404 [Dave@Pr gm t] I'm currently working on this. Right now it generates multiple entries
  30417 [nahi@ke na t] Fine.  Thanks.
  30434 [Dave@Pr gm t] Many thanks - I'll look into each of these.

.dfb Files
29557 [ralph.mason@] ...

ruby-mode.el indentation issue
29561 [Le Wang <lew] Here is an indentation problem I noticed in ruby-mode.el 1.39 + GNU
29595 [nobu.nokada@] The problem is that nested parentheses are ignored.
29626 [Le Wang <lew] Worked like a charm.
29638 [bobx@li ux a] Is there a place a complete ruby-mode.el is kept? I am not good at

Is this a bug?
29564 [ryo_saeba_00] irb(main):003:0> Integer(3)
29566 [ryo_saeba_00] Sorry guys, something messed up with my client.

Re: 30 Language Implementations, 25
29568 [paul@at es .] There are a few problems with some of the tests (for example, the word
29570 [dan@si he or] The word count test was dodgy in the perl version too (and would break on

Subject numbers and threading
29572 [hal9000@hy e] Thanks, Dave and Bill, for your comments.
29634 [tom.hurst@cl] If your mailer (use mutt) doesn't have the ability to thread purely on

win32api docs
29592 [henning@ik o] Where can I find a pointer to some docs that would make the Win32API class
29607 [wsobel@Ba ra] Here's a _small_ clipboard class. It turned out to be harder than I

extending method of class A to support arguments of class B by promoting `self' to class B
29596 [taw@us rs so] (Names of classes chosen arbitrarily, just to show issue)
+ 29597 [mchahn@fa el] Is this possible?  I've wanted to change an object's type before inside a
| 29598 [taw@us rs so] I meant: temporary object of type Complex, initiated by Real object, should be created,
+ 29605 [nobu.nokada@] Define Complex#coerce if you mean only Numeric classes.  See
  29610 [taw@us rs so] It would be really nice if such thing were added.
  29627 [matz@ru y- a] Define "such thing".  And convince me it's nice.
  29700 [taw@us rs so] <problem>
  + 29728 [matz@ru y- a] But it's within Numeric hierarchy, where coerce mechanism is
  + 29848 [chr_news@gm ] substraction, where none

Stripping substrings from strings
29602 [paulvallance] Dear ruby gurus,
+ 29609 [billk@ct .c ] "" is indeed an empty string in Ruby, as is '' or %q{} etc.
+ 29615 [ralph.mason@] irb(main):002:0> "123456789 TCP/XT OK".gsub(/TCP\/XT OK/,nil)
  + 29616 [Dave@Pr gm t] Or even...
  | 29631 [paulvallance] clever clogs !
  + 29630 [paulvallance] cool, thanks for your help.

promoting self to subclass (was extending method of class A ...)
29603 [mchahn@fa el] Why not allow a method to "promote" it's object to a subclass of the object?
+ 29604 [taw@us rs so] How can it be used in presented Real/Complex case ?
| 29606 [mchahn@fa el] Not at all, which is why I changed the subject.
+ 29636 [list@ch om t] class Foo
| 29649 [mchahn@fa el] Your solution is what I have used.  But it is much longer than the one line
+ 29654 [dblack@ca dl] Yes, please :-)
  + 29659 [list@ch om t] Fun that you should post this just after a late reply of mine to matju
  | 29665 [mchahn@fa el] Yes, that is quite a coincidence.  You had participated in my thread and
  + 29674 [mchahn@fa el] That sure was a long thread.  It covered all my ideas and arguments, so I

Extending Ruby on Windows platform using VC++ IDE
29613 [moyer4@me ia] I'm extremely new to Ruby. I've been reading the Programming Ruby book. Chap
+ 29617 [mchahn@fa el] ...
+ 29619 [nobu.nokada@] Which version of ruby do you use?
| + 29744 [moyer4@me ia] (Nobu, Sorry I responded to you first, rather than the group)
| | + 29746 [mchahn@fa el] My experience is that Ruby doesn't care whether the extension has a .so or
| | + 29750 [moyer4@me ia] Woops, I forgot the attachment. Here it is.
| | + 29751 [nobu.nokada@] So you use cygwin version ruby.  Extension library for it can't
| |   + 29763 [moyer4@me ia] OK, but it doesn't seem as convenient because the mswin32 distribution
| |   + 29768 [moyer4@me ia] Well,  looks like I can use the TK DLL that came with the cygwin
| + 29748 [moyer4@me ia] In my previous reply I said I installed version 1.6. The version is actually
+ 29741 [mkelly2002NO] Using a VC++ project is probably easier but if you
  29743 [mchahn@fa el] I don't understand this.  A project is a project, right?
  29745 [mchahn@fa el] I just realized that you were asking to build an extension, not Ruby itself.

textsubstitution and quotes
29614 [mikkelj-anti] the following does not create a list "a" "b" "c" as expected when creating
29620 [nobu.nokada@] 1.6.6 works fine.

Ruby and variables (was Re: Perl/Python Module Porting)
29637 [list@ch om t] (Yes, this is ``a little'' late reply.)
29720 [benoit.cerri] or int.succ!
29724 [matz@ru y- a] Do you really want to change the value of the integer object 1 into 2?
+ 29730 [mchahn@fa el] When you do
| 29781 [matz@ru y- a] Unless everything is equally mutable (or immutable), you have to
+ 29739 [list@ch om t] Matz, you are making me feel a bit of an alien. :-)
  29780 [matz@ru y- a] In other words, unlike Strings and other objects, Numeric values are

Is there any Ruby app using ncurses?
29639 [list@ch om t] The subject says it all. :-)
+ 29682 [ttate@kt ja ] I know there is 'ress' which is a file viewer like 'less'.
| 30217 [list@ch om t] I downloaded it.  It has got some patches to apply and japanese-only
+ 29697 [mrchameleon@] Jakub Travnik has written a good (curses-based) text mode ui; you can
  29726 [list@ch om t] Yes, I know, and to say good is to understate it.  But I tried it in

Was that to inpolite? Re: Call for a small program
29641 [Tom.Karas@ht] Was my "Call" to inpolite?
29673 [angus@qu va ] I guess that your "call" never reached the mailing list. There are a
29958 [Tom.Karas@ht] thanks for your answer. I posted it again.

Ruby binary for OSXServer 1.2?
29642 [herren@ch mp] Greetings-
29647 [dempsejn@ge ] I have Ruby 1.6.5 working on OSXS 1.1...what are the errors you saw in

putting contents of variable into a string
29643 [paulvallance] Dear ruby users
+ 29644 [ralph.mason@] You need to use
| 29663 [paulvallance] thanks & apologies, I made a stupid typo. @boxtype should be
+ 29645 [chadfowler@c] Maybe I'm missing something, but shouldn't you be using

Ruby 1.6.6 on MacOSX10.1.2
29648 [ggirton@ma .] I have compiled and installed 1.6.6 on MacOSX10.1.2
+ 29650 [jbardin@hs .] You most likly need to add "/usr/local/bin" to your path.. not sure how os
+ 29653 [bobhicks@ad ] ln -s /usr/local/bin/ruby /usr/bin/
+ 29690 [gehlker@fa t] Assuming you're running tcsh, add this to the .tcshrc file in your home
  29693 [jeff@ne wo l] When I finished building and installing ruby I had to execute "rehash"

RDE problem with spaces in path names
29656 [acagle@su im] RDE now gets a 'loaderror' when it tries to load a .rb file that is in a
+ 29681 [nobu.nokada@] Surround the path with ".
+ 29717 [QZS01353@ni ] There is the same bug that occurs when starting up with "/a" option.

Formatted Text Pane
29657 [ronjeffries@] Chet and I plan to write an editor while not thinking of a pink
+ 29683 [alwagner@tc ] I think you will be both suprised and amazed at what the Tk text widget can
| 29719 [ronjeffries@] Can it do different fonts, bold and regular face, italic, etc?
| + 29752 [alwagner@tc ] Yes.  All of the above and more.  You can even embed arbitrary windows and
| | 29762 [ronjeffries@] Thanks for the pointers and the offer ... we just may call you on
| | 29771 [x@ic im nk .] If you haven't looked at them yet, Jonathan Conway's translation of the Tk
| | 29852 [ronjeffries@] Great, thanks, we'll check them out!
| + 29760 [wilbert@os f] Tk text widget is indeed incredibly powerful.
|   29854 [ronjeffries@] I'll check my library and see if that's the one I have. If not I'll
+ 29920 [matju@sy pa ] if you hack the model-view pattern into whatever widget you use, and use a

1.6.6 and Tk
29658 [bobhicks@ad ] Ok I give up!
+ 29721 [kero@ch ee .] ./configure  --prefix=/usr --with-tcl-include=/usr/include/tcl8.2/ \
+ 29767 [vjoel@PA H. ] I've got the same distro (mdk81) and did what you did to install 1.6.6.
+ 29794 [bobhicks@ad ] Ahhhhh....got it!

Copying an array
29660 [RADiep@ao .c] arrayOne.each do |element|

Copying an Array
29661 [fokke_wulf@h] arrayOne.each do |element|
+ 29662 [niko.schwarz] copy = orig.clone
| 29698 [cmbchris@ma ] Well, I was only able to come up with a few different methods...
+ 29705 [nobu.nokada@] If arrayTwo exists already, to add all elements in arrayOne,

rb2exe.rb - making executables from rubyscripts
29664 [paulvallance] make executables with it.

Yet Another Newbie
29667 [mkelly2002NO] Yet Another Newbie.  :)
+ 29670 [taw@us rs so] XEmacs ?
+ 29675 [mchahn@fa el] Yet Another Newbie.  :)
+ 29686 [alwagner@tc ] The IDEs are all pretty much works-in-progress right now.  However, for
  29733 [mkelly2002NO] Thanks for the tips.
  29827 [Le Wang <lew] I second XEmacs.  If you learn one editor for programming, it should
  29872 [mkelly2002NO] I have to admit I'm starting to get spoiled and expect
  29878 [alan@di ik t] I don't know about Xemacs, but regular emacs has always had the
  + 29880 [taw@us rs so] Is there some tutorial that contain all these Emacs tricks ?
  | 29894 [Le Wang <lew] The short answer is: no.  At lease I've not been able to find a
  + 29893 [Le Wang <lew] My fault entirely all emacsen are approximately the same.  I just
    + 29899 [mkelly2002NO] I didn't realize it had gotten that sophisticated.  So far though
    + 29901 [mkelly2002NO] Just as an aside, a while ago I set up Kylix