34207-36127 subjects 34632-35242

^ recursive require
34467 [ronjeffries ] I'm having a really odd thing happen with two files that mutually
+ 34472 [paul atdesk.] Having two files that mutually require each other is almost always a
+ 34474 [ysantoso jen] I had this problem too.
| 34501 [ronjeffries ] Thanks for answering, but I'm araid I don't understand this idea. If
| 34502 [ysantoso jen] Here are three files, abc.rb, xyz.rb, and global.rb. abc contains
| + 34508 [pit capitain] If you carefully look at the output, you'll notice that "Xyz" and "Abc"
| | 34589 [ysantoso jen] Duh. I plead ignorance. Attached is the correct implementation. This
| + 34509 [ronjeffries ] OK, I think I'm getting the idea. You're saying that the "other" file
| + 34514 [cboos bct-te] While forward decl. could work that way in Ruby,
+ 34475 [Dave Pragmat] 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 Pragmat] There's a new version of Lapidary called 'testunit' that's made it's
| |   34524 [andy toolshe] ...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 iastate.e] No problem I can see. A bare "netcat" client...
| 34530 [moonerent ho] Mark,
| 34535 [ms iastate.e] If you want a second client to be able to connect before the first has
+ 34510 [kjana dm4lab] 1. write the issue in the message body
  34595 [moonerent ho] Mark and Yanagawa,

^ OT - Programmer war stories
34488 [Chris ShowPr] I'm trying to reach as many seasoned programmers

^ IPSocket.getaddress and signals
34489 [joe vpop.net] Does anyone know why signals are not handled while in
34490 [matz ruby-la] Because Ruby signal handler is called from interpreter loop, not
34565 [matt lickey.] Where can we get resolve-replace.rb?  Google, raa, searching my hard
34567 [joe vpop.net] Actually it's resolv-replace (no e)

^ special characters
34503 [tobiasreif p] on the commandline, I can type ' (ä ä),
34505 [erik bagfors] irb(main):001:0> a = 'rsmg'
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 mandra] it does happen to me if i type something like

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

^ (none)
34511 [mgalera yaho] unsubscribe

^ Unsubscribe
34513 [choong eng.i] Unsubscribe

^ Rubicon Failure
34515 [ruby-lists w] Hey hey,
34522 [Dave Pragmat] Which version of rubicon are you running? It looks like TestDir is
+ 34525 [ruby-lists w] Latest CVS of rubicon
| 34527 [Dave Pragmat] 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 Pragmat] Full of hard-coded paths, but, for what it's worth... :)

^ Windows Installer Ruby 166-0 available
34517 [andy toolshe] The first version of the MSVC version of the Ruby installer
+ 34532 [CRIBBSJ oakw] I am assuming by reading the release notes that this does not include
| + 34536 [andy toolshe] At some point; probably not real soon.  I'd like to ship one GUI, not
| | + 34539 [CRIBBSJ oakw] Ok, thanks for the quick response.
| | + 34564 [bobx linuxma] Great job Andy!
| + 34616 [alex_oscol y] And what about postgresql?
+ 34541 [gehlker fast] Thanks for your efforts, Andy. Just for fun I installed it under Virtual PC.
+ 34546 [alwagner uar] this change.  I have to use Windows at work but do not have
| + 34547 [cboos bct-te] I had to make some fixes so that bdb could
| + 34558 [ljohnson res] No, extensions compiled with Cygwin cannot be loaded by a Ruby compiled with
+ 34549 [ptkwt shell1] What I/O functionality is missing?  (I'm guessing things like popen won't
+ 34551 [probertm nor] Hmmm.  Please forgive my silly question, but does this mean that
| + 34552 [cbroult sapi] This message is in MIME format. Since your mail reader does not understand
| + 34555 [alwagner uar] -Some- people thought so.
| | 34557 [chris.morris] what you're looking for.
| + 34559 [ljohnson res] Both ;) The installer doesn't require Cygwin, and the Ruby it installs
+ 34596 [pcs3 mailhos] 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 ihug] Yes. The nicest thing about the more recent pragprog Windows installers is
+ 35321 [holmberg iar] Thanks for providing this !
+ 39402 [flxkid hotma] Posted a bug report on sourceforge, don't know how yall normally do

^ Re: Ruby license (was Epic4/Ruby)
34518 [Dave Pragmat] 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 ruby-la] If you DO NOT want to release your modified version, condition 2b

^ REXML benchmark test error
34521 [maki rubycol] I installed REXML 1.2.7 and tried benchmark test, but I got an error.
34543 [ser germane-] Masayoshi,

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

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

^ Drastically offtopic ( was Re: special characters)
34570 [dsafari xtra] I highly doubt that.
+ 34572 [jason jvoege] Or you can download any of them for free at http://www.linuxiso.org
| 34577 [pixel mandra] 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 sevai] 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 shell1] According to "Ruby in a Nutshell" pg 18, 'or' is a nonmethod operator
+ 34578 [paul atdesk.] You have not overridden or, but simply re-implemented or to have the
+ 34579 [ptkwt shell1] A little more investigation reveals that 'or' was not really overridden in
| 34599 [pcs3 mailhos] irb(main):001:0> class C
+ 34592 [matz ruby-la] You've defined "or" method, but no "or" operator.

^ TRW: block call question
34586 [josb cncdsl.] <quote>
34609 [msassak spea] Yup. See http://www.rubycentral.com/book/ref_c_proc.html#Proc._ob_cb

^ rdoc/xml questions
34597 [Dave Pragmat] I'm wondering about having rdoc generate xml output, and have a couple
+ 34606 [james rubyxm] 1. Which form is easiest for a human to read and understand?
| 34608 [Dave Pragmat] 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 rubyxm] Resource Description Framework (RDF) is an W3C XML syntax designed to describe
| | + 34627 [Dave Pragmat] 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 rubyxm] 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 rubyxm] 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 rubyxm] No. Why do you ask?
| |     34641 [tobiasreif p] All your comments suggested that it's not even worth bothering to
| + 34649 [dblack candl] Would you consider something that mimicked the Ruby syntax more, such
+ 34621 [ser germane-] I'd prefer nesting.  With the other way, you won't be able to as easily
| 34624 [Dave Pragmat] So, I'd probably not have the parent class as a class's attribute,
| 34790 [ser germane-] Hm. Well, I'm not an xlink guru, but I think that technically your href
| + 34793 [Dave Pragmat] And then you're fired :)
| | 34800 [tobiasreif p] 1.
| | + 34801 [Dave Pragmat] 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 rubyxm] No problem.
| + 34853 [james rubyxm] <snip />
+ 34677 [sean celsoft] I do things my own way, so this may not make sense in terms of some of the
  34681 [dblack candl] That approach depends on Ruby names and XML identifiers having identical
  34715 [maki rubycol] <class name="A">

^ Using DBI with Mysql problem
34615 [beripome yah] Win 2000, Ruby Installer 1.66-0.
34622 [520079130762] The Mysql.rb file (MySQL DBD) is missing!
34663 [beripome yah] I thought so (duh). Installed and works great now. Thanks for the link
34686 [Dave Pragmat] 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 mailhos] Have you tried excel.Quit()?
+ 34620 [pcs3 mailhos] Also
  34873 [u.n.c.l.e.b.] Sorry, I should have been clearer.  The goal is for the Ruby program
  + 34876 [WYS helbling] A "ruby.exe" process?
  | 34997 [u.n.c.l.e.b.] No, an Excel process, or some Excel resource.
  | + 35002 [cbroult sapi] This message is in MIME format. Since your mail reader does not understand
  | | 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 mailhos] I understand what you mean now, but I'm afraid I can't help.  Mainly

^ ACE Reactor
34626 [joe vpop.net] That sounds quite useful.  Do you have any examples of using reactor

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