34207-36127 subjects 34632-35242

recursive require
34467 [ronjeffries@] I'm having a really odd thing happen with two files that mutually
+ 34472 [paul@at es .] Having two files that mutually require each other is almost always a
+ 34474 [ysantoso@je ] I had this problem too.
| 34501 [ronjeffries@] Thanks for answering, but I'm araid I don't understand this idea. If
| 34502 [ysantoso@je ] Here are three files, abc.rb, xyz.rb, and global.rb. abc contains
| + 34508 [pit@ca it in] If you carefully look at the output, you'll notice that "Xyz" and "Abc"
| | 34589 [ysantoso@je ] ...
| + 34509 [ronjeffries@] OK, I think I'm getting the idea. You're saying that the "other" file
| + 34514 [cboos@bc -t ] While forward decl. could work that way in Ruby,
+ 34475 [Dave@Pr gm t] Ruby won't require or load the same file twice. However, executing the
| + 34499 [ronjeffries@] Where can I find out more about this?
| | + 34504 [tobiasreif@p] I'm using TextPad, and I like it a lot.
| | | 34512 [ronjeffries@] I'm not so deeply into the command line. I haven't used it enough lately
| | + 34520 [Dave@Pr gm t] There's a new version of Lapidary called 'testunit' that's made it's
| |   34524 [andy@to ls e] ...it's also included in the new Windows Installer version.
| |   34529 [Stephan.Kaem] ....which is available for public consumption when?
| |   34528 [Stephan.Kaem] Forget that question - just haven't yet read your announcement..
| + 34500 [ronjeffries@] That's what it does, all right. IMO it's a bug or at least very odd. For
+ 34478 [patrick-may@] What seems smelly to me is that you have two points of entry to the
  34498 [ronjeffries@] I'm reordering Patrick's comments so that my answers flow better ...

Any ideas on why this doesn't work?
34473 [moonerent@ho] require 'socket'
+ 34484 [ms@ia ta e. ] No problem I can see. A bare "netcat" client...
| 34530 [moonerent@ho] Mark,
| 34535 [ms@ia ta e. ] If you want a second client to be able to connect before the first has
+ 34510 [kjana@dm la ] 1. write the issue in the message body
  34595 [moonerent@ho] Mark and Yanagawa,

OT - Programmer war stories
34488 [Chris@Sh wP ] I'm trying to reach as many seasoned programmers

IPSocket.getaddress and signals
34489 [joe@vp p. et] Does anyone know why signals are not handled while in
34490 [matz@ru y- a] Because Ruby signal handler is called from interpreter loop, not
34565 [matt@li ke .] Where can we get resolve-replace.rb?  Google, raa, searching my hard
34567 [joe@vp p. et] Actually it's resolv-replace (no e)

special characters
34503 [tobiasreif@p] on the commandline, I can type '?' (ä ä),
34505 [erik@ba fo s] irb(main):001:0> a = 'r?ksm?rg?s'
34516 [tobiasreif@p] Dual boot WinME&LinMandrake, but I use only WinME daily. Could I get it
34523 [ruby-lists@w] export LANG="de_DE"
+ 34550 [tobiasreif@p] thanks for the tips.
+ 34573 [pixel@ma dr ] it does happen to me if i type something like

P/Invoke like system for ruby.
34507 [erik@ba fo s] Since the hottest thing to talk about right now is .NET I read up a
+ 34531 [chris@da kr ] Does this work in Mono ?
| 34533 [erik@ba fo s] The code-examples was from am article by Miguel (of mono-fame) so I
| 34534 [chris@da kr ] Hrmm, awesome :-)
+ 34591 [vjoel@PA H. ] What about Ruby/DL? (I haven't tried it, but it looks like the same sort

34511 [mgalera@ya o] unsubscribe

34513 [choong@en .i] Unsubscribe

Rubicon Failure
34515 [ruby-lists@w] Hey hey,
34522 [Dave@Pr gm t] Which version of rubicon are you running? It looks like TestDir is
+ 34525 [ruby-lists@w] Latest CVS of rubicon
| 34527 [Dave@Pr gm t] I'm not sure - I just refreshed both the ruby 1.7 tree and the rubicon
| 34537 [ruby-lists@w] Did the same, but didn't help.
+ 34548 [comp.lang.ru] - - Could you post the script/tools for doing this? I've got access
  34568 [Dave@Pr gm t] Full of hard-coded paths, but, for what it's worth... :)

Windows Installer Ruby 166-0 available
34517 [andy@to ls e] The first version of the MSVC version of the Ruby installer
+ 34532 [CRIBBSJ@oa w] I am assuming by reading the release notes that this does not include
| + 34536 [andy@to ls e] At some point; probably not real soon.  I'd like to ship one GUI, not
| | + 34539 [CRIBBSJ@oa w] Ok, thanks for the quick response.
| | + 34564 [bobx@li ux a] Great job Andy!
| + 34616 [alex_oscol@y] And what about postgresql?
+ 34541 [gehlker@fa t] Thanks for your efforts, Andy. Just for fun I installed it under Virtual PC.
+ 34546 [alwagner@ua ] this change.  I have to use Windows at work but do not have
| + 34547 [cboos@bc -t ] I had to make some fixes so that bdb could
| + 34558 [ljohnson@re ] No, extensions compiled with Cygwin cannot be loaded by a Ruby compiled with
+ 34549 [ptkwt@sh ll ] What I/O functionality is missing?  (I'm guessing things like popen won't
+ 34551 [probertm@no ] Hmmm.  Please forgive my silly question, but does this mean that
| + 34552 [cbroult@sa i] ...
| + 34555 [alwagner@ua ] -Some- people thought so.
| | 34557 [chris.morris] what you're looking for.
| + 34559 [ljohnson@re ] Both ;) The installer doesn't require Cygwin, and the Ruby it installs
+ 34596 [pcs3@ma lh s] Superb.  But do the installations really need to include an editor?
| + 34628 [Stephan.Kaem] Well it's not absolutely neccessary, but it's a nice to have...
| + 34945 [timsuth@ih g] Yes. The nicest thing about the more recent pragprog Windows installers is
+ 35321 [holmberg@ia ] Thanks for providing this !
+ 39402 [flxkid@ho ma] Posted a bug report on sourceforge, don't know how yall normally do

Re: Ruby license (was Epic4/Ruby)
34518 [Dave@Pr gm t] You've got me worried, because I use Ruby all the time in commercial
34526 [tom.hurst@cl] Up to here it's identical to the GPL, except the source has to either be
34602 [matz@ru y- a] If you DO NOT want to release your modified version, condition 2b

REXML benchmark test error
34521 [maki@ru yc l] I installed REXML 1.2.7 and tried benchmark test, but I got an error.
34543 [ser@ge ma e-] Masayoshi,

dispatching and class references
34554 [probertm@no ] Thank you for everyone for helping me with my dispatch
34556 [paul@at es .] Returning by value is almost the same as returning a reference to a
34561 [probertm@no ] Now I -am- confused! :-)
34562 [paul@at es .] It looks like you've frozen your container but not the objects inside.
+ 34563 [probertm@no ] Got it!
+ 34575 [rokosm@kl ka] But objects inside are not frozen.
  34576 [paul@at es .] Sounds like something out of a bad movie :)
  34600 [pcs3@ma lh s] It does, but there's also an issue here about where does it end that all
  34607 [rokosm@kl ka] You can do this, if you set appropriates $SAFE level.
  34781 [paul@at es .] I think there is some use for such a method, but I'm not sure how it
  34820 [rokosm@kl ka] irb(main):001:0> a = ["aaa", "bbb", "ccc"]

Ruby's Future
34566 [paulo@be ne ] features are available in 1.7 and planned for 1.8?
34569 [elanthis@aw ] Speaking of which, I remember and argument I brought up (and some of
+ 34574 [paul@at es .] eval(x)
| 34601 [elanthis@aw ] Both of those solutions used eval().  ^,^  It's not the speed of eval
| 34782 [paul@at es .] How, then, do you propose I handle callbacks?  If I need the result of
+ 34587 [paulo@be ne ] Well, I was playing with TUX, writing modules for it, and I started
| 34594 [matz@ru y- a] Rite will have some kind of VM.  It would NOT be Parrot, but I hope I
+ 34593 [matz@ru y- a] Could you show me your mini-lang API if possible?  They would help me.
  34598 [elanthis@aw ] I've only got two of the three, only one of which is still functional
  34603 [matz@ru y- a] I wanted to see the API, if you can't release the whole code.
  34604 [elanthis@aw ] The link to the code I provided has an API like the other two languages

Drastically offtopic ( was Re: special characters)
34570 [dsafari@xt a] I highly doubt that.
+ 34572 [jason@jv eg ] Or you can download any of them for free at http://www.linuxiso.org
| 34577 [pixel@ma dr ] pff... download the network.img (1.44MB) and you can install from ftp/http on
+ 34580 [tobiasreif@p] 1. Most PCs are OEM Win boxes, so that's $0 for the OS.
  34581 [mdavis@se ai] Just because you don't appear to pay for the OEM copy of windows when you purchase your computer does not mean you aren't paying for it:)  I am sure that MS get their money one way or another.
  34583 [tobiasreif@p] No doubt. I didn't mean Win is $0; but when I buy some prebuilt
  34584 [tobiasreif@p] ... let's end this OT thread :)

overriding operator 'or'
34571 [ptkwt@sh ll ] According to "Ruby in a Nutshell" pg 18, 'or' is a nonmethod operator
+ 34578 [paul@at es .] You have not overridden or, but simply re-implemented or to have the
+ 34579 [ptkwt@sh ll ] A little more investigation reveals that 'or' was not really overridden in
| 34599 [pcs3@ma lh s] irb(main):001:0> class C
+ 34592 [matz@ru y- a] You've defined "or" method, but no "or" operator.

TRW: block call question
34586 [josb@cn ds .] <quote>
34609 [msassak@sp a] Yup. See http://www.rubycentral.com/book/ref_c_proc.html#Proc._ob_cb

rdoc/xml questions
34597 [Dave@Pr gm t] I'm wondering about having rdoc generate xml output, and have a couple
+ 34606 [james@ru yx ] 1. Which form is easiest for a human to read and understand?
| 34608 [Dave@Pr gm t] I thought about this a while before originally posting. The problem is
| + 34610 [tobiasreif@p] So perhaps just specify the parent? Then you can represent all the
| + 34625 [james@ru yx ] Resource Description Framework (RDF) is an W3C XML syntax designed to describe
| | + 34627 [Dave@Pr gm t] Aye, there's the rub. I know about RDF, but I'm not sure I see how to
| | | 34630 [tobiasreif@p] (the example is bogus, but that's probably what RDF would look like +/-)
| | + 34629 [tobiasreif@p] XMI may be verbose, UXF usable, and XTM cool.
| |   34633 [james@ru yx ] The problem I have with many of these markup syntax is that the specific cases often  do
| |   + 34636 [tobiasreif@p] Before developing a new document type, one should review existing ones.
| |   | 34640 [james@ru yx ] None. Never said there was. I came to my opinion after reviewing existing markup schemas.
| |   | 34642 [tobiasreif@p] This is going nowhere. So I misunderstood you, and you reviewed all
| |   + 34637 [tobiasreif@p] Would you write your own programming language, befor evaluating existing
| |     34639 [james@ru yx ] No. Why do you ask?
| |     34641 [tobiasreif@p] All your comments suggested that it's not even worth bothering to
| + 34649 [dblack@ca dl] Would you consider something that mimicked the Ruby syntax more, such
+ 34621 [ser@ge ma e-] I'd prefer nesting.  With the other way, you won't be able to as easily
| 34624 [Dave@Pr gm t] So, I'd probably not have the parent class as a class's attribute,
| 34790 [ser@ge ma e-] Hm. Well, I'm not an xlink guru, but I think that technically your href
| + 34793 [Dave@Pr gm t] And then you're fired :)
| | 34800 [tobiasreif@p] 1.
| | + 34801 [Dave@Pr gm t] I haven't yet found one that fits, but I'm still looking. The ones I
| | | 34818 [tobiasreif@p] A DTD would be as cool as any other schema format.
| | + 34848 [james@ru yx ] No problem.
| + 34853 [james@ru yx ] <snip />
+ 34677 [sean@ce so t] I do things my own way, so this may not make sense in terms of some of the
  34681 [dblack@ca dl] That approach depends on Ruby names and XML identifiers having identical
  34715 [maki@ru yc l] <class name="A">

Using DBI with Mysql problem
34615 [beripome@ya ] Win 2000, Ruby Installer 1.66-0.
34622 [520079130762] The Mysql.rb file (MySQL DBD) is missing!
34663 [beripome@ya ] I thought so (duh). Installed and works great now. Thanks for the link
34686 [Dave@Pr gm t] Nope - probably just something got left out.

Using Win32OLE with Excel leaves Excel process hanging
34617 [u.n.c.l.e.b.] I have created a neat little ruby program that generates a useful
+ 34619 [pcs3@ma lh s] Have you tried excel.Quit()?
+ 34620 [pcs3@ma lh s] Also
  34873 [u.n.c.l.e.b.] Sorry, I should have been clearer.  The goal is for the Ruby program
  + 34876 [WYS@he bl ng] A "ruby.exe" process?
  | 34997 [u.n.c.l.e.b.] No, an Excel process, or some Excel resource.
  | + 35002 [cbroult@sa i] ...
  | | 35107 [u.n.c.l.e.b.] Except that I want to leave it running so that the user can look at
  | + 35098 [masaki.suket] What the following script output on your environment?
  |   35106 [u.n.c.l.e.b.] irb(main):002:0*   require 'win32ole'
  |   35152 [masaki.suket] Win32OLE 0.2.6 is too old. Try the latest version 0.4.0.
  |   35227 [u.n.c.l.e.b.] Thank you!  I should have thought of that myself before posting here.
  + 35181 [pcs3@ma lh s] I understand what you mean now, but I'm afraid I can't help.  Mainly

ACE Reactor
34626 [joe@vp p. et] That sounds quite useful.  Do you have any examples of using reactor

Object/Memory Management
34631 [sean@ce so t] I'm new to Ruby and the community here (I've been learning Ruby for a grand
+ 34634 [elanthis@aw ] You can call the GC routines to do cleanup at any time you want.
| + 34643 [sean@ce so t] I've
| | 34645 [vjoel@PA H. ] GC starts with objects that are known to be reachable, like the values
| | 34754 [benoit.cerri] entire
| + 34644 [elanthis@aw ] The only other option I can think of is to add reference counting.
|   34648 [sean@ce so t] I wanted to use Ruby for my hosting system configuration, web site
|   34659 [Dave@Pr gm t] It needn't. Ruby is pretty conservative - you'll find it garbage
|   + 34662 [sean@ce so t] and I
|   + 34668 [gehlker@fa t] But Dave, Java's GC notoriously sucks. I know from personal experience that
|   | 34745 [frankm@ba ar] How do they do that?  Do they have their own JVM?  Or do they simply
|   | 34774 [gehlker@fa t] In the context of the conversation, he clearly meant the latter.
|   | 34795 [cjack@cj ck ] My take is this is more due to the current development stage of RubyCocoa
|   | 34814 [gehlker@fa t] You could be right here. I'll have to play with some Ruby Tc apps and see if
|   + 34749 [benoit.cerri] Yes but both (recent jvm and clr) use advance generational collectors
+ 34654 [ysantoso@je ] Why? Depending on what you do and how you do it, GC can be much faster
| 34657 [sean@ce so t] Because I like controlling when my program cleans itself up.
| + 34665 [ysantoso@je ] reference counting has this tendency of not being able to perform
| | + 34666 [dan@si he or] Reference counting also tends to be more expensive than most other
| | + 34672 [sean@ce so t] I'm taking it on faith right now that Ruby will be fine with long-running
| |   34685 [elanthis@aw ] If you are coming from a C++ background, then why not just define a
| |   34691 [sean@ce so t] 2002-02-> If you are coming from a C++ background, then why not just define
| |   34709 [elanthis@aw ] The stack has that one advantage, yes.  There are a number of ways
| |   + 34719 [jweirich@on ] Actually, if we are talking about stack based C++ objects here, this
| |   | 34720 [elanthis@aw ] Jumping was the one issue I was referring.  The order of destructors,
| |   | 34722 [sean@ce so t] Yes, but there are bad implementations everywhere.  Don't avoid something
| |   | 34724 [elanthis@aw ] Unfortunately that isn't a choice, sometimes.  You may need those
| |   + 34721 [sean@ce so t] turn
| |     34723 [elanthis@aw ] Mainsteam compilers, yes.  I suppose not everyone tries to be as
| |     34770 [ rik@kd .o g] #if Sean Middleditch
| |     34773 [elanthis@aw ] Again, my point.  Don't rely on complex, failable tasks in destructors.
| + 34689 [ysantoso@je ] reference counting has this tendency of not being able to perform
+ 34656 [jweirich@on ] Other responses addressed your explicit destruction question ... I'll
| 34658 [sean@ce so t] Well...I come mainly from C++, which doesn't do reference counting, so
| + 34660 [Dave@Pr gm t] File.open("/etc/passwd") do |f|
| | 34664 [sean@ce so t] enforce
| + 34667 [jweirich@on ] I was going to suggest a pooled resource manager, but Dave beat me to
| | 34674 [sean@ce so t] I will have to look again at the finalizing features...I didn't know there
| | 34680 [jweirich@on ] No, it's correct.  The finalizer is still run after the "object" is
| | 34692 [sean@ce so t] Actually, wouldn't your example cause the object to never get cleaned up
| | 34696 [jweirich@on ] There is no reference to the FinalizingObject.  It is created in the
| + 34671 [tom.hurst@cl] [SNIP]
+ 34675 [sean@ce so t] Thanks to everyone for helping me sort out these issues.  I still want to