98593-99325 subjects 99004-101444

ruby CVS can't use shared libs on NetBSD
98820 [rasputnik@he] This is probably a platform thing, I'm using cvs ruby
+ 98825 [decoux@mo lo] PostgreSQL was compiled with -lpthread ?
| 98842 [rasputnik@he] Ah, that falls over when miniruby dumps core trying to build digest-md5...
| + 98886 [rasputnik@he] Ack. Scrub that, that box has a ropey pthread install.
| | 99069 [rasputnik@he] Just for the record, this is all working great now - ruby was linking against
| | 99070 [decoux@mo lo] Well, you can submit perhaps a patch for configure.in, no ?
| | 99163 [rasputnik@he] I could if I had the first clue what all the line noise in a
| + 98916 [decoux@mo lo] Well, I really dont know : I don't have NetBSD
+ 98843 [elathan@ph s] Actually, I had also some ruby coredumps while developing an
  98867 [rasputnik@he] Not ideally, but it's a CVS build - and it's a C library issue
  98885 [elathan@ph s] In my case it was ruby 1.8/1.8.1. Even if it's the case of an

Navigating Files by Line Number
98830 [mrjdoh@ma lb] I've tried the following code on Win XP, Ruby 1.8rc1 and
+ 98859 [jason.wold@g] That seems to fit with the ri description of File.lineno=.  It sets
+ 98861 [g_ogata@op u] IO#lineno= just sets the counter, not the position in the file.  This
+ 98862 [ahoward@fa t] line = IO.readlines 'testfile.txt'

def [](v) xx; return yy; end # returned value is ignored !?
98832 [jean_hugues_] For some class I am redefining operator []=(x). Works great.
+ 98840 [bob.news@gm ] "Jean-Hugues ROBERT" <jean_hugues_robert@yahoo.com> schrieb im Newsbeitrag
| 98855 [jean_hugues_] Humm, things are the way they are. When I get annoyed by my
| + 98872 [discord@ma .] It wasn't always that way. Calling "Foo.bar = value" used to respect
| | 98873 [jean_hugues_] That makes sense. Yet, I am missing the xxx= where I do control the value
| | + 98887 [discord@ma .] I'm not sure what the problem is... What sort of circumstance will this
| | | 98911 [jean_hugues_] Something more than was intended, Yes, but only when the assignee is a
| | | + 98936 [djd15@po cw ] I'm not quite sure  agree with what what you're saying.
| | | + 98946 [kristof@vl e] There is a problem with treating an lvalue this way, and that is
| | |   + 98957 [jean_hugues_] Ruby is cool, a lvalue can be a *method call*.
| | |   | + 98960 [neoneye@ad l] I have made iterator package, which does the same,
| | |   | + 98961 [kristof@vl e] I would rather get rid of the eval, because eval
| | |   + 98977 [discord@ma .] binding.local(:a) = 23  #=> 23
| | |     99000 [kristof@vl e] I wonder how you could make this work.  binding.local(:a)
| | |     99007 [discord@ma .] I see. I momentarily forgot that while you can use methods as lvalues,
| | |     99027 [kristof@vl e] Yes, that looks better than my version with value.
| | |     99029 [discord@ma .] I don't understand why local variables would be treated as a method
| | |     99030 [kristof@vl e] Correct.
| | + 98954 [bob.news@gm ] "Jean-Hugues ROBERT" <jean_hugues_robert@yahoo.com> schrieb im Newsbeitrag
| |   98976 [jean_hugues_] You may skip this msg if you don't care about a potential future
| + 98883 [dblack@wo bl] There's nothing wrong with something being impossible in Ruby.  Ruby
|   98910 [jean_hugues_] Nothing wrong, I for sure agree. And "by ref" is probably not something very
+ 98845 [discord@ma .] Short answer: assignment always returns the value assigned, regardless
  + 98846 [msparshatt@y] Actually there's an easier way, you can just use
  | + 98849 [discord@ma .] Ahhh. You're right; I guess it works differently with the brackets.
  | + 98868 [jean_hugues_] x.[]= y instead of x[] = y, Right.
  + 98869 [jean_hugues_] OK. I guess I have to accept that.

drb with udp
98838 [Ara.T.Howard] can someone give me a baby example of using drb with udp?  i'm wondering if
98884 [drbrain@se m] if
99447 [danj@3s el c] something like drb, it can be a disaster if a reliable negotiation

Lazy evaluation
98851 [mneumann@nt ] I am currently hacking a Packrat parser just for fun. I need to mix
+ 98871 [jean_hugues_] Comments ? Not much. Besides the fact that we both need some kind of a
| + 98875 [flgr@cc n. e] We're working on it: http://evil.rubyforge.org/
| + 98877 [mneumann@nt ] Something like the Delegator class in delegate.rb is useful.
|   98914 [jean_hugues_] If this is not transparent, this is very close to transparent !
|   98926 [mneumann@nt ] You might also have a look at the algebra module.  But they are in the
+ 99086 [feldt@ce ch ] I guess this is beside the point but are you sure you really need an
| 99145 [mneumann@nt ] Hm, it's probably me who didn't read the papers enough :-)
+ 99226 [pbrannan@at ] I'm not suggesting that anyone actually do this, but I have a lazily-

Ruby Installer [was Opportunities and pitfalls; was "Introducing myself - Sascha Ebach"]
98863 [curt@hi bs c] I don't want to mislead you here -- the Ruby Installer project *is* the
98889 [discord@ma .] I understood that. previously I had thought that the focus of the
98897 [curt@hi bs c] I'm one of the maintainers, and as I said it is currently a windows-only
99099 [john.platte@] OS X has a built-in installer. You can create packages using the

Ruby on AIX
98864 [matt@te hn r] I have a bunch (over 150) of AIX systems running 4.3.3, 5.1 & 5.2.  I

Ruby Libraries [was Opportunities and pitfalls; was "Introducing myself - Sascha Ebach"]
98865 [curt@hi bs c] I think this is a good idea.

[ANN] RubyGems 0.3.0
98876 [chad@ch df w] We have just released another alpha of the RubyGems package manager.

logger.rb does not rotate files properly
98881 [NOSPAM@ke py] I thought I'd mention that logger.rb does not rotate log files after it
99724 [nahi@ke na t] I don't remember your first mail you mention here.  Maybe I slipped a

Re: Lazy evaluation (evil)
98896 [ptkwt@ar cn ] Just took a quick look at evil.
98913 [flgr@cc n. e] We're not using that yet -- currently all we do is use Ruby/DL to get
98917 [decoux@mo lo] Well, this is a P language for me this ...
98919 [flgr@cc n. e] It should look more like a very powerful S language which is a major
+ 98920 [decoux@mo lo] I hope that you've seen what you are trying to solve
| 98922 [flgr@cc n. e] I'm not solving, I'm providing. It is interesting to see how this gets
| 98924 [decoux@mo lo] Then, like I've said, it's a P language
| 98929 [flgr@cc n. e] So Ruby is a P language because it has callcc?
| + 98930 [decoux@mo lo] No, ruby is a R language :-)
| | 98933 [flgr@cc n. e] What's the difference between P and R language in this case then if it
| | 98935 [decoux@mo lo] You think, apparently, that it exist a concrete problem and you think that
| | 98938 [flgr@cc n. e] No. As I said: I'm providing, not solving. I do the same that Ruby does
| + 98937 [kristof@vl e] From a conceptual point of view is callcc very important.
|   + 98940 [surrender_it] I think this sentence may be incorrect.
|   | + 98943 [lthiryidontw] Ocaml is a functionnal langage of the ML family. It means it abuses of
|   | | + 98945 [neoneye@ad l] Standard ml (SML) allows for sideeffects too.  Don't know about Lisp/Scheme.
|   | | + 98948 [djd15@po cw ] Lisp and Scheme can have side effects.  Lisp has (setf) and Scheme has
|   | | + 98970 [gsinclair@so] Ruby has some superficial niceties borrowed from functional languages
|   | + 98944 [djd15@po cw ] Lisp is more or less the original functional language. However, it's pretty
|   | | 99067 [niklas@ka i.] I think that the distinction between procedural and functional languages
|   | | + 99073 [kristof@vl e] In C you can return a pointer to a function.  Of course it
|   | | | 99077 [surrender_it] => #<Proc:0x028b6448@(irb):1>
|   | | + 99124 [jean_hugues_] Would the last one succeed if there was something like a Lvalue class,
|   | + 98962 [kristof@vl e] You are right, I used the term "functional language" in a wrong
|   |   98963 [decoux@mo lo] Well, in the original message from matz, there are 2 possibilities
|   |   98964 [kristof@vl e] Both solutions look good to me.  The advantage of using do would
|   + 98986 [matz@ru y- a] I have to mention callcc was added not because to make Ruby a real
|     98996 [jean_hugues_] I guess this really deserved to be called "pragmatism" ;-)
|     98999 [kristof@vl e] This surprises me quite a bit, because I wouldn't think implementing
|     99008 [matz@ru y- a] I didn't implement, my colleague did.  I'm proud of working with such
+ 98921 [neoneye@ad l] What is S and P language ?
  + 98923 [surrender_it] well, S should stand for smalltalk, p should be..
  + 98925 [msparshatt@y] I'm guessing that
  + 98928 [mneumann@nt ] I guess, it stands for Smalltalk and Perl.
  + 98934 [kristof@vl e] What about Scheme and Python?
  + 98939 [lthiryidontw] Solving and Proving, as I could understand.
    + 98941 [lthiryidontw] Solving and Providing, sorry.
    + 98942 [neoneye@ad l] There are lots of combinations..
      98947 [lthiryidontw] I don't understand it either! ;)
      + 98949 [surrender_it] obviously you missed the R language :)
      | 98952 [lthiryidontw] I forget to tell about it.
      + 98955 [neoneye@ad l] The page is rather empty.. it only says:  'Welcome to the P Language and System'

RubyGems 0.3.0 and Rake -- comments and problems
98899 [cc1@ce .w st] Suggestion on above, you could actually do something interesting with
+ 98902 [chad@ch df w] Actually, Jim is going to create a new Rake gem that uses the new
| 98905 [jim@we ri hh] Done!  You can download the latest Rake GEM file from
| 98906 [chad@ch df w] Done! (not the auto-deploy, but a manual copy)
+ 98978 [chad@ch df w] Thanks for the report, Charles.  This was a problem with only very

Re: [ANN] RubyGems 0.3.0 -- and commentary about use of --help on projects
98901 [cc1@ce .w st] Also, noticed with gem -l, it might be nice to only display the up to
98903 [chad@ch df w] I think as we start seeing more and more gems in the list, this kind of

[ANN] win32-ipc 0.1.0
98907 [djberg96@ho ] I'm pleased to announce the first release of win32-ipc.

[ANN] win32-event 0.2.0
98908 [djberg96@ho ] I'm pleased to announce the release of win32-event 0.2.0.

[ANN] Ruby Installer for Windows 1.8.1-13 Release Candidate 2
98912 [curt@hi bs c] Ruby Installer for Windows 1.8.1-13 Release Candidate 2 is available for
98969 [itsme213@ho ] Thank you, Curt!

Strange behaviour of Strings in Range
98950 [mneumann@nt ] r1 = ("\000" .. "\377")   # all characters?
+ 98972 [bob.news@gm ] "Michael Neumann" <mneumann@ntecs.de> schrieb im Newsbeitrag
+ 99010 [matz@ru y- a] It's caused by "succ" magic.  Let me think about either subtracting
  99034 [hal9000@hy e] "9" is not really a character anyway, but a string consisting of
  99040 [matz@ru y- a] No.  The definition of "character" should belong to the application
  + 99043 [hal9000@hy e] These are two or three separate issues, I believe.
  | 99047 [matz@ru y- a] Rite gives 1 char string for str[0].
  + 99068 [bob.news@gm ] "Yukihiro Matsumoto" <matz@ruby-lang.org> schrieb im Newsbeitrag
    + 99076 [surrender_it] I found this article really interesting, maybe it can help you too.
    | 99089 [bob.news@gm ] "gabriele renzi" <surrender_it@remove.yahoo.it> schrieb im Newsbeitrag
    | 99092 [decoux@mo lo] What do you do when you need 24 bits ?
    | 99152 [bob.news@gm ] "ts" <decoux@moulon.inra.fr> schrieb im Newsbeitrag
    | + 99153 [decoux@mo lo] What do you do with documents with Japanese EUC encoding
    | + 99174 [matz@ru y- a] I assume you're saying that there's no more than 65536 characters on
    |   99177 [bob.news@gm ] "Yukihiro Matsumoto" <matz@ruby-lang.org> schrieb im Newsbeitrag
    |   99181 [martinelzen@] I've looked up the references Robert Klemme found by searching for I18N on
    |   99188 [ceo@ph sc .c] As an outsider, and as an application programmer, if the language has to
    |   99190 [hal9000@hy e] Can you do that with any language whatsoever? Don't say Java, because
    |   + 99195 [bob.news@gm ] "Hal Fulton" <hal9000@hypermetrics.com> schrieb im Newsbeitrag
    |   + 99202 [ceo@ph sc .c] No flame understood, and none intended here either, but I didn't ask for I18N
    |     + 99248 [assaph@av ya] I've done some work with unicode/java/ruby and these remarks might
    |     + 99272 [matz@ru y- a] Don't worry.  It would be transparent except you have to declare your
    |       99273 [martinelzen@] Actually, it's not really hard to hide almost all of that from the
    + 99090 [matz@ru y- a] It's _their_ intention.  Whether it succeeds or not is another story.
      + 99093 [bob.news@gm ] "Yukihiro Matsumoto" <matz@ruby-lang.org> schrieb im Newsbeitrag
      | 99096 [matz@ru y- a] Did I say such thing?  Trying is a good thing.
      | 99103 [bob.news@gm ] "Yukihiro Matsumoto" <matz@ruby-lang.org> schrieb im Newsbeitrag
      | 99106 [matz@ru y- a] Basic idea is your "alternative" in [ruby-talk:99089].
      | + 99112 [martinelzen@] I've been reading up on Unicode recently, and it strikes me as a standard
      | | 99120 [sroberts@ce ] UTF-8 is another good way to store them, it costs more space the more
      | + 99158 [bob.news@gm ] "Yukihiro Matsumoto" <matz@ruby-lang.org> schrieb im Newsbeitrag
      |   99175 [matz@ru y- a] Yes, even though it's merely a prototype.
      + 99097 [gsinclair@so] Why is that?  Is there not enough room for every character known to
        99098 [matz@ru y- a] Some other problems.  I really wish things are that simple.

Class resolution problem
98951 [ceo@ph sc .c] Please bear with me, I'm a beginner, and I'm beginning to think, of very
98959 [dblack@wo bl] This means that a SOAP::HTTPStreamError has been raised (with the
99138 [nahi@ke na t] Yes.  RAA SOAP interface is still down to reflect the RAA change.  It is
99178 [nahi@ke na t] I thought that untested developing version was better than not found.
99210 [ceo@ph sc .c] ruby raabrowser.rb
99242 [nahi@ke na t] Good morning from Japan,

[rcr] absolute __FILE__
98953 [neoneye@ad l] There has been a bunch of talking recently about if
98956 [dblack@wo bl] You can also comment on it at RCRchive itself, which might be better

Don't understand hashing...
98965 [mneumann@nt ] class Lazy
+ 98966 [decoux@mo lo] p id2.eql?(id1)
| 98992 [drbrain@se m] To expand upon this, in a Hash identical keys have an identical hash
+ 98971 [bob.news@gm ] "Michael Neumann" <mneumann@ntecs.de> schrieb im Newsbeitrag

renewal Ruby/Tk
98973 [nagai@ai ky ] I committed new Ruby/Tk libraries to CVS HEAD and ruby_1_8 branch.

how can I add the iconv extension to Ruby?
98974 [martinelzen@] I want to be able to convert UTF-16 strings to UTF-8.  From a usenet post I
+ 99039 [assaph@av ya] IIUC, the .so files are just the connection ruby needs to the actual
| 99041 [assaph@av ya] ps. If you're on windows, try downloading binaries and plonking them in
+ 99088 [ser@ge ma e-] This won't solve your iconv problems, but if all you want to do is
  + 99095 [martinelzen@] After downloading and compiling the GNU libiconv stuff (which resulted in
  | 99129 [assaph@av ya] ...
  + 99925 [nobu.nokada@] Wasn't this posted already?

Why no Proc##[]=() ? Why no Proc##replace() ?
98975 [jean_hugues_] Looking at lvalues in Ruby I learned a lot. I thought Proc
98983 [djd15@po cw ] I'm not sure what your proposal means.
98997 [jean_hugues_] About class Proc; def []=(*args); self[*args] end end and the value of
+ 99013 [batsman.geo@] It seems to me that you're assuming @x is an instance variable of the
| 99052 [jean_hugues_] You are right, I was wrong. I believed @x was an instance variable
| + 99056 [djd15@po cw ] Local variables work, but they have to be defined outside of the scope of the
| | 99083 [jean_hugues_] Thanks.
| + 99072 [ambrus@ma h.] You don't.  A proc is just a simple lambda without mutable internal state.
|   99123 [jean_hugues_] class CacheProc < Proc
+ 99037 [djd15@po cw ] I understand the concept of an lvalue in assignment. I just don't think it
  99084 [jean_hugues_] About hypothetical class Proc; def []=(*args) self[*args] end end
  99101 [djd15@po cw ] Right. If m is a Method object, then m[1] = x doesn't make sense either.
  99143 [jean_hugues_] initiated it I thought it might be useful to tell you that. if you don't
  99246 [djd15@po cw ] Ah. Well, you have an example where #[]= makes sense for a Proc. However,
  + 99253 [assaph@av ya] Sorry to get real-worldy on an academic discussion, but there's a much
  + 99275 [jean_hugues_] You are right, I was wrong.

The Art of Untarring (Was: SciTE Ruby Lexer)
98979 [ jupp@gm .d ] Using 'mc' hit F3 on any kind of supported  archive to see if there
98987 [neoneye@ad l] Its interesting to see how others deal with tar.gz files.
98991 [DocBoobenste] I'm not aware of the existence of such a tool, but I'm sure a small

Ruby Newbie (ooh, that rhymes!) - When do I use do/end, when {}?
98980 [glenn_m_smit] First some waffle as this is my first post...
+ 98981 [jean_hugues_] Welcome.
| 98984 [discord@ma .] yes, in ambiguous situations, it can require parent either way. For
+ 98982 [discord@ma .] While there is some amount of preference involved, there is a general
  98989 [gfb@to es ft] As somebody has mentioned already it is not only preference, but also
  + 98995 [glenn_m_smit] And this would include curlies for hash definitions then?
  + 99002 [kristof@vl e] I also like to use {} when I know the block will still exist

{} VS do/end styles (was: Ruby Newbie - When do I use do/end, when {}?)
98985 [jim@we ri hh] I've heard that general advice, and even followed it for a while.  I
98988 [jamesUNDERBA] { ... } means less typing, plus brace matching in Vim.
98990 [gsinclair@so] * Vim will %-match do/end as well as {}
98993 [jamesUNDERBA] That's good news.   Is this in the current Rub Vim scripts?  I have some
+ 98994 [DocBoobenste] Whether do/end is easier to type than {} is rather subjective... from
| 98998 [jean_hugues_] I come from Pascal, so I tend to do/end. So you are probably right
| + 99001 [dblack@wo bl] I come from Ruby :-) and I find myself tending to use {} for shorter
| | + 99003 [Stephan.Kaem] 8< snip ...
| | | 99016 [jean_hugues_] "It's better to prevent than to cure".
| | + 99009 [discord@ma .] I admit, I hadn't realized the situation was a complex as it is. I had
| + 99015 [jamesUNDERBA] I don't see religion as having anything to do with this; I follow the
+ 99012 [gsinclair@so] The latest CVS from http://vim-ruby.rubyforge.org should provide this
+ 99014 [michael_s_ca] That's easy; just use a smaller font.  =)