78402-82342 subjects 78830-82371

1.8.0 vs. Windows XP problem
78679 [michael_s_ca] I downloaded the latest source and built ruby under cygwin. make, make test,
+ 78690 [matz@ru y- a] This means your installation was not complete.  socket.dll is not
| 78703 [michael_s_ca] Thanks Matz.  I deleted the entire archive tree and the install directory,
| 78712 [ jupp@gm .d ] Saluton!
| 78715 [michael_s_ca] "emulated", yes, but not duplicated.  I tried that first and still got the
+ 78692 [kdresner@cs ] "ruby-talk@ruby-lang.org"  See?  That wasn't too hard.  You could even
  78697 [hal9000@hy e] Out of curiosity, what did he do to screw up your
  78748 [kdresner@cs ] When people pick a random email to reply to instead of typing the name
  78750 [mgarriss@ea ] I've had the same problem a few times.  Today in fact! :)

How to build a distributable Solaris binary for Ruby 1.8?
78682 [google-venka] I apologize if I have missed any other posts that addressed this.
+ 78684 [B.Candler@po] tar -czf rubydist.tar.gz \
| + 78686 [djberge@qw s] I just noticed that sunfreeware.com doesn't appear to have a 1.8 package
| | + 78688 [B.Candler@po] Ah, I misunderstood if you wanted a pkgadd-type package.
| | + 78737 [google-venka] The admin guys are ok with installing a package. It is just that they are not
| + 78730 [google-venka] Thank you. At my work, we have a Solaris 8. Our customer has Solaris 9. Is there
| | 78740 [B.Candler@po] Ugh, I would strongly suggest you should compile on a Solaris 9 box if
| + 78733 [jim@fr ez .o] If what you want is a binary install, then Brian's solution
| + 78779 [nobu.nokada@] You can install ruby into a particular place by DESTDIR,
+ 78687 [dcarrera@ma ] What's the problem with installing GCC?
  78738 [google-venka] The Information Security guys in big banks are always uncomfortable about

Ruby docstrings
78694 [sera@fh an .] I suppose it depends on who you're writing the documentation for. In

Ruby and Fink (for Mac OS X)
78696 [mwilson13@co] Fink has an outdated Ruby (1.6.7). I don't really know how to build a

ruby 1.8.0 and =~
78699 [probertm@NO ] I have been out of it for a bit and have just started plating with 1.8.0.
+ 78700 [hal9000@hy e] No need to redo that one... the item on the
| 78707 [probertm@NO ] "Hal E. Fulton" <hal9000@hypermetrics.com> did say ...
+ 78701 [brett_willia] This code works fine in 1.8.0.
| 78713 [ jupp@gm .d ] Saluton!
+ 78780 [nobu.nokada@] Enumerable#grep might make it easier a bit.

readline.dll missing in 1.8 final?
78702 [chrismo@cl b] 1.8p3 was missing readline.dll ... 1.8 final seems to be missing it as
+ 78705 [chrismo@cl b] <http://jarp.jin.gr.jp/win32/readline-4.3-1-mswin32.zip>
+ 78706 [chr_news@gm ] WATANABE, Hirofumi  maintains a very nice collection of
+ 82343 [chr_news@gm ] WATANABE, Hirofumi  maintains a very nice collection of

passing --with-X-dir to bundled extensions while building 1.8.0
78704 [slumos@ya oo] I can't seem to find a "good" way to do this.
+ 78742 [slumos@ya oo] And of course there is one, and it's obvious.  If I had just thought
+ 78745 [matz@ru y- a] Supply your --with-X options to the configure.  Makefile passes

[ANN] FXRuby-1.0.25 Now Available
78708 [lyle@kn lo y] All,

newbie mixin questions
78720 [mgarriss@ea ] 1) How can I mixin a class method (not an instance method)?
+ 78722 [mgarriss@ea ] oops, didn't mean for it to end up in that thread
+ 78723 [vjoel@PA H. ] Since #include doesn't propagate class/module methods, you have to use
+ 78725 [gfb@to es ft] class A
  78726 [mgarriss@ea ] Very cool.  Will this require me to have two seperate modules though?
  + 78728 [dblack@su er] No, modules are very modular and can fit almost anywhere :-)
  | 78731 [mgarriss@ea ] Thank you for the explanation.  I'm still a bit confused about something
  | + 78739 [gfb@to es ft] If you really want to separate them, well, make them separate modules.
  | | 78757 [dblack@su er] One other technique that might be relevant is Module#included, which
  | | 78760 [mgarriss@ea ] That's what I needed.  Thanks!
  | | 78797 [bob.news@gm ] "Michael Garriss" <mgarriss@earthlink.net> schrieb im Newsbeitrag
  | | + 78802 [djd15@cw u. ] module MyClassMethods
  | | + 78805 [dblack@su er] I'm not sure what you mean; I only see one #something method.
  | |   78817 [djd15@cw u. ] I think he meant that you're defining #something
  | |   78820 [dblack@su er] OK, I see.  All the more do they qualify as different techniques :-)
  | + 78744 [hal9000@hy e] There is a way to do this, but I can't recall it
  + 78734 [gfb@to es ft] I think so. Technically, you can include the same module both as calss and

newbie mixin question
78721 [mgarriss@ea ] 1) How can I mixin a class method (not an instance method)?
+ 78724 [vjoel@PA H. ] Define initialize in the module, and call super from the class which
+ 78746 [matz@ru y- a] module Foo
  78783 [gsinclair@so] Alternatively

keeping ruby in the safe
78727 [mikkelfj-ant] mystery of the lost ruby

$SAFE = 5 and Safe Ruby Misleading?
78735 [kirindave@le] Hey folks.
78741 [B.Candler@po] You're right in one sense - if someone has rights to modify core objects and
78821 [kirindave@le] Well, what if I took in code, say from a semi-trusted source. Let's say
+ 78824 [decoux@mo lo] No, the only way to do it is to make the analysis at $SAFE = 4 and return
+ 78825 [billk@ct .c ] Not sure if this is sophisticated enough for your purpose - I just
+ 78826 [matz@ru y- a] The untrusted thread can return value from it.  For example,
  78828 [djd15@cw u. ] I've not really played around with $SAFE or security
  78846 [kirindave@le] Yeah. There is no way to check. Further, there is no way to even be sure your
  + 78850 [djd15@cw u. ] Well, I'm not sure I totally agree with that. It is
  + 78851 [denshimeiru-] str = /.*/m.match(str)[0]
  | 78855 [idan@id ns .] a=~ (/./)
  + 78917 [decoux@mo lo] Try something like this
    78964 [kirindave@le] This was the part I was missing, and thanks to everyone who helped me out by

Ruby vs Python?
78736 [dcarrera@ma ] Could someone offer me a comparison between Ruby and Python?
+ 78753 [dave@pr gp o] I don't think there's a meaningful comparison that would help you: the
| + 78762 [hal9000@hy e] wxPython
| | 78764 [kdresner@cs ] I'm more reminded of the Progressive Auto Insurance commercials.
| + 78788 [finrod_felag] 8-<
+ 78792 [tim@ve et .a] Binary files ruby and python differ
+ 78796 [ gv@cs uu nl] (1)
| + 78838 [lyle@kn lo y] Never one to let a nit go unpicked, I would point out that it's Andy
| + 82346 [lyle@kn lo y] Never one to let a nit go unpicked, I would point out that it's Andy
|   + 78909 [ gv@cs uu nl] How sloppish of me.  My apologies to Dave and Andy.  And, yes, I now know
|   + 79093 [ gv@cs uu nl] Oh, and don't forget to try out Lyle's FXRuby first ;-)
|   | + 79101 [lyle@kn lo y] Well, I thought that went without saying ;)
|   | + 82361 [lyle@kn lo y] Well, I thought that went without saying ;)
|   + 82378 [jim@fr ez .o] Why are these old posts showing up?
+ 78803 [gour@ma l. n] Have you considered AAP (Agide) project(s) written in (wx)Python?

RDoc'ed versions of stdlib files
78749 [gsinclair@so] [This thread has travelled from ruby-code to personal email and now to

using case with classes
78754 [mgarriss@ea ] Ok, this did not work like I expected (because I know too little about
+ 78756 [djd15@po cw ] Which might not be updated for 1.8, but whatever...
+ 78778 [rpav@us rs s] def test( obj )
  + 78781 [easco@ma .c ] ...
  | 78782 [gsinclair@so] How about
  | 78784 [mgarriss@ea ] Very nice, but why the ';' after 'else'?  Works with and without for me.
  | 78786 [gsinclair@so] I'm pleasantly surprised.  Another semicolon bites the dust.
  + 78799 [bob.news@gm ] "Ryan Pavlik" <rpav@users.sourceforge.net> schrieb im Newsbeitrag

NaN and Inifinity
78755 [easco@ma .c ] If I do something like
+ 78758 [kdresner@cs ] irb(main):012:0> a = Math::log(-1)
| + 78759 [kdresner@cs ] I apparently was also able to paste too much of my session in here to be
| + 78763 [easco@ma .c ] Hrrrm... Okee dokey.  I tried something like that and I get
|   + 78765 [harryo@qi so] Not that wacky.  I get the same.
|   + 78766 [djd15@po cw ] It's not just you. Happens to me, too, using Ruby 1.8.0pre9 (I believe)
|   | + 78767 [kdresner@cs ] Oh yeah, I'm way out of date.
|   | | 78773 [nahi@ke na t] Depends underlying C library.
|   | + 78770 [mgarriss@ea ] irb(main):001:0> a = Math::log(-1)
|   + 78768 [markjreed@ma] I get the same thing.  I think it's something wacky with 1.8.
|   + 82344 [markjreed@ma] I get the same thing.  I think it's something wacky with 1.8.
+ 78769 [mike@ra do .] I don't understand what you mean by 'assign the variable "a" to NaN'.
| + 78771 [hal9000@hy e] module Math
| | 78772 [kdresner@cs ] The other thing you might want to consider is how useful this would be.
| | 78774 [hal9000@hy e] You're probably right. Besides that, I committed
| + 78777 [easco@ma .c ] In the C library that I am trying to expose to Ruby there is a constant
+ 78776 [mike@ra do .] If you are using IEEE 754 math then you can try
+ 79432 [dan@ta ta od] It might help to think of NaN meaning "some undefined value". Then it
  79478 [paulNO@SP Ma] In statistics, there's a big difference between zero and no data, and

Re: [ruby-dev:21182] REXML introduces unexpected Object#__ne__
78761 [nahi@ke na t] I found this at the top of lib/rexml/xpath_parser.rb in the CVS.

Re: NaN and Infinity
78785 [paulNO@SP Ma] I wanted the same thing for a simple statistics class that used Kalman
78798 [mike@ra do .] Does it make sense that
79477 [paulNO@SP Ma] Actually, it yields -Infinity.  s.min would be Infinity.

Cut your debt in half! READ THIS NOW]43o9230[v
78787 [jodlhoowhgwi] Sick of lining the banks pockets? We understand!

Become free from debt for LIFE!! Read..
78789 [lciexnbmodtp] Hey,

We think Debt Sucks. Read this.
78790 [bvbpfheurpxw] Okay heres the deal,

(German) Article about Design Patterns in Ruby online
78791 [mjais@we .d ] at this URL you can find a very good and interesting article by Michael

Debt Sucks! Read This.
78793 [yscjtlsffkfg] Read this!

Stop debt today, live debt free tommorow
78794 [kmsjynsufzzy] Check this out, this is helpful..

hash default value
78804 [emmanuel.tou] I'm bitten by a hash default value problem. I wanted to avoid the
+ 78807 [dblack@su er] No, there's no autovivification in the Perl manner :-)
| + 78882 [chr_news@gm ] This not quiet true (for 1.8) - see Guy's post. If you
| + 82352 [chr_news@gm ] This not quiet true (for 1.8) - see Guy's post. If you
|   + 78884 [dblack@su er] The block default value technique is vivification, but it's not auto
|   + 78892 [djd15@po cw ] Like puzzles, do you?
+ 78808 [decoux@mo lo] You must use the block form
+ 78809 [mike@ra do .] In recent rubys (I tried on 1.8) you can say

UTF-8 question
78810 [lone-star@ho] I've finally switched to UTF-8.  It's awesome.  Now, if I can only find
+ 78814 [B.Candler@po] Try 'iconv', supplied with 1.8.0 or available from RAA as in the "shim"
| + 78816 [B.Candler@po] FYI, I just rebuilt using
| | 78865 [nobu.nokada@] Alternatively,
| + 79147 [roberto@RE O] [courtesy cc of this posting sent to cited author via email]
+ 78823 [matz@ru y- a] define "UTF-8 support" first.
  78834 [lone-star@ho] hm...I messed up.  I was trying to do "hispa?ola".gsub(/\xf1/, 'n'), but
  78867 [nobu.nokada@] Although "\xf1" seems ISO-8859-1 instead of UTF-8, you have to
  + 78868 [lone-star@ho] ruby -Ku -e 'puts "\xf1"'
  | + 78869 [nobu.nokada@] I meant that single "\xf1" is not valid in UTF-8, do you want
  | | 78871 [lone-star@ho] ah, sorry, I misunderstood.  Hm, yeah, you're right, it's not valid.
  | + 78874 [markjreed@ma] That's going the other way.  -Ku tells Ruby to treat the source code
  | + 82349 [markjreed@ma] That's going the other way.  -Ku tells Ruby to treat the source code
  + 78873 [markjreed@ma] Right.  In a UTF-8 file, the string "hispa?ola" doesn't
  + 82348 [markjreed@ma] Right.  In a UTF-8 file, the string "hispa?ola" doesn't
    + 78878 [nobu.nokada@] BOM(byte order mark) sounds nonsense in UTF-8, one of multibyte
    | 78943 [nhodgson@bi ] While it does sound like a nonsense, the sequence of bytes [0xEF, 0xBB,
    + 78879 [lone-star@ho] What I wan't to be able to do is
      78881 [nobu.nokada@] If it is really in UTF-8,
      78885 [lone-star@ho] yeah, this works.  The problem is - I would prefer tr(), as I could then
      + 78945 [markjreed@ma] The problem is that Ruby Strings are still logically treated as
      + 79082 [nobu.nokada@] You can use jcode.rb.
      + 82354 [markjreed@ma] The problem is that Ruby Strings are still logically treated as
        78952 [lone-star@ho] Yeah, that's what I guessed.

Nested class/module namespace
78813 [nathaniel@NO] The new ability to declare a class nested in another module (or class)
+ 78831 [news@st d. t] I can't help thinking that it might be a feature, not a bug.
+ 78843 [matz@ru y- a] Unfortunately, it's not.  "class M::C" notation is not a syntax sugar
| + 78854 [dblack@su er] At first glance this seems like a loss.  Are there times when there's
| + 78863 [nathaniel@NO] What is the motivation behind the current behavior? Is it that way because
| | 78886 [austin@ha os] It makes sense to me.
| | 78888 [nathaniel@NO] OK, I understand how it's behaving... but why? What's the benefit of it
| | 78951 [matz@ru y- a] Because it's not nested at all.  It is confusing for me, if it behaves
| | 78953 [nathaniel@NO] Oops... I guess I've been using it incorrectly :-). So it's not for this
| | 78959 [matz@ru y- a] I didn't express my idea correctly.  M too should be covered by nested
| | 78965 [nathaniel@NO] OK.
| | 79034 [chrismo@cl b] My 2 cents, I thought the same as Nathaniel when I read about class M::C.
| + 78918 [decoux@mo lo] Well, it has a little problem
|   78947 [matz@ru y- a] i,
|   78950 [decoux@mo lo] Then was is this case ?
|   78963 [matz@ru y- a] You are right (as usual).  The other bug confused me.
+ 82345 [news@st d. t] I can't help thinking that it might be a feature, not a bug.
  + 78847 [chr_news@gm ] Agreed!
  + 78862 [nathaniel@NO] I don't understand the benefit... when I use classes and modules for
  | + 78875 [chr_news@gm ] If this does not benefit you just don't use the new feature.  Remember the
  | + 78907 [news@st d. t] module Constants
  | + 82351 [chr_news@gm ] If this does not benefit you just don't use the new feature.  Remember the
  | | + 78889 [nathaniel@NO] Well, I'd like the language to improve if possible... and it seems that the
  | | | 78903 [gsinclair@so] Well put.  I'll throw my 10c in as well.
  | | | 78922 [dblack@su er] Keep in mind, though, that this isn't the only such situation in Ruby.
  | | | 78938 [gsinclair@so] I agree with Nathan that what goes on in "eval" and friends is a
  | | | 78942 [dblack@su er] I always thought that klass.class_eval and obj.instance_eval were
  | | + 78890 [dblack@su er] (I'd still like to see an example of a case where benefit was
  | |   78895 [nathaniel@NO] It is good to know that it's not completely new... I guess the current
  | + 82353 [news@st d. t] module Constants
  |   78955 [nathaniel@NO] But that common ancestral namespace isn't arbitrary (and it certainly isn't
  |   + 78967 [hal9000@hy e] will
  |   + 78976 [news@st d. t] Fair enough, but what about all the constants of all the preceeding
  |   | 78994 [djd15@cw u. ] I must say, I was doubtful that anyone would come up
  |   + 82355 [news@st d. t] Fair enough, but what about all the constants of all the preceeding
  |     79042 [nathaniel@NO] <snip excellent explanation of a good use for the new behavior>
  + 82347 [chr_news@gm ] Agreed!

Windows Installer for Ruby 1.8.0 Final
78815 [andy@pr gm t] Thanks for your patience
+ 78818 [gsinclair@so] JUST as I had finished installing the latest preview you had there!!!
+ 78819 [chrismo@cl b] Excellentishness. Any word on when you will upload install source?
| + 78822 [jrh@ta is co] Thank you for finding the time to fit doing this into your busy schedule.
| | 78934 [mvondung@gm ] I second that. Unlike most here, I don't have a programming background
| | 78937 [andy@pr gm t] Yikes!  Well at least I've saved one soul from the ravages of Python :-)
| | + 78940 [joeygibson@e] Is there a page that explains what all the included packages are and their versions? I just looked through the stuff at http://rubyinstaller.sourceforge.net/ and then http://rubygarden.org/ruby?WindowsInstaller but didn't see a full listing of what's there. Is it strictly a binary installer of the exact source that Matz released? I was thinking that there were some bolt-on packages that were included so you didn't need to bolt them on by hand later. Am I mistaken?
| | | 78946 [emmanuel.tou] (from http://sourceforge.net/project/showfiles.php?group_id=67007 click
| | + 78954 [mike@ra do .] Surely you mean "Python's gentle embrace" :-)
| | + 78956 [ ted@ph .n t] Where is this?
| | | 78962 [joeygibson@e] sigh... Thanks. I didn't even think to look there.
| | + 78998 [martindemell] One of the guys at work this morning mentioned that he was starting to
| + 78840 [andy@to ls e] Hmm.  I probably should at *least* put that on my TODO list :-)
+ 78833 [jon@sc ns ft] Excellent! But what happened to win32ole? What exactly do you mean by
| 78839 [andy@pr gm t] A newer version is included as part of the main Ruby distribution; the
| 78861 [harryo@qi so] I've already built and installed from source.
| 78877 [andy@pr gm t] If you've built the Ruby interpreter and all the libraries and
| + 78883 [harryo@qi so] Sorry, I should have been more specific.  I didn't build any extensions, just what came in the source tar ball.
| | 78935 [andy@pr gm t] Then unless you've built the interpreter differently from the what the
| | 78996 [harryo@zi .c] OK. Thanks for that.
| + 78915 [austin@ha os] Does the Windows build support iconv?
|   78936 [andy@pr gm t] I don't believe so (that is, I haven't done anything out of the ordinary
+ 78932 [mvondung@gm ] Thanks! :)  As always, your work is greatly appreciated!
+ 78949 [REMOVE_THISu] any official release of Ruby with its extension on Windows?
| + 78968 [andy@pr gm t] I'm using Microsoft (ugh) VC++, with all the libraries and products that
| + 79021 [oadartse@ya ] All available from http://www.mingw.org/download.shtml
+ 79431 [dan@ta ta od] Nice haiku /\ndy
  79436 [andy@to ls e] As Matz will point out, that *is* the point :-)
  79495 [harryo@qi so] If you do, please mention it on the list.  I'm so used to vim that I could never move to one of those fancy IDEs without such a plugin!
  79535 [rvb@rv .d nd] as far as i know VIM and Anjuta can be compiled with Bonobo support. I