7721-8649
7484-8460 subjects 7911-9384
^ Ruby enhancement request
7721 [ljohnson res] Because the format string for rb_scan_args() only uses single digits to
+ 7723 [aleksi.nieme] I guess I've seen somewhere limit of 17 arguments, or so. I guess you're
+ 7731 [Dave Pragmat] If it's a fixed number, you can have up to 17 (the argc parameter to
+ 7733 [matz zetabit] * a method which takes arbtrary number of argument; defined by -1
7780 [ljohnson res] Matz & Others,
^ subscribe Nicolas Duteil
7725 [nduteil bigf] C'est un message de format MIME en plusieurs parties.
^ Ruby for Windows CE
7726 [aleksi.nieme] Someone asked at http://www.pragprog.com:8080/ruby?WindowsCERuby
^ Installation utility
7734 [Dave Pragmat] For those following the thread on application installers, and who
^ strange border-case Numeric errors
7737 [green FreeBS] I haven't had a good enough chance to familiarize myself with the code in
7742 [matz zetabit] ===================================================================
+ 7745 [green FreeBS] Thanks for the prompt fix, matz! I should probably write a test case for
| + 7748 [matz zetabit] I'm trying to get the world record of MTBF (Mean Time Before Fix). ;-)
| + 7749 [Dave Pragmat] I'd appreciate that!
| 7768 [green FreeBS] Here's one simple test case that would catch the bug. I don't think it
+ 7762 [jilanik tin.] How to apply this patch to the existing code? (Linux OS and FreeBSD).
+ 7764 [Dave Pragmat] Somewhere you have the Ruby source tree.
| 7765 [hgs dmu.ac.u] Note for those on other platforms: Some versions of patch don't
+ 7771 [matz zetabit] Use `patch' program originally written by Larry Wall.
7788 [schneik us.i] #
+ 7798 [Dave Pragmat] If someone mails me the message it produces, I'll add a FAQ entry
| + 7817 [schneik us.i] #
| + 7852 [hgs dmu.ac.u] I have just tried to reproduce this, and like so many "live demos" it
| 7903 [schneik us.i] #
+ 7849 [hgs dmu.ac.u] Yes. "[That] note is...subject to improvement...". :-)
^ [Q] Are Exceptions used that much in practice?
7746 [schneik us.i] FYI. This is from comp.lang.python. Thought some people here might find it
7787 [sent quality] Correct me if I'm wrong, but it seems like Ruby's
+ 7797 [Dave Pragmat] There's a really neat use of catch/throw in the pstore module. If
+ 7880 [raja cs.indi] You are right. But I wouldn't term it an "abuse".
7883 [raja cs.indi] (unwind-protect
7889 [sent quality] Fair enough. In a C++ context it's abuse. In
^ make test error when compiling with djgpp
7757 [feldt ce.cha] When compiling Ruby 1.6.2 2000-12-18 snapshot with djgpp I get the
^ Next amusing problem: talking integers (was Re: Code sample for improvement)
7759 [dblack candl] Just wait til the online cookbook is up and running :-)
+ 7789 [steve deaf.o] Here's my first go. Very procedural!
| 7793 [sent quality] My first shot at a Ruby solution can be viewed
+ 7803 [dfan harmoni] def english_num (num)
| 7829 [sent quality] Nice way to set up an array of strings. I'll
| + 7836 [dblack candl] Well, it depends what you mean by "beat" :-)
| + 7868 [steve deaf.o] ones_names = %w(one two three four five six seven eight nine ten
| | + 7873 [dblack candl] ones_names = %w{ ... } .unshift ''
| | + 7887 [dfan harmoni] That's not quite the same. In the first case, ones_names[0] = '' and
| | 7904 [dblack candl] [I think something I did might have caused 1 or 2 of my messages not
| | 7919 [dfan harmoni] Yep. I was optimizing for cuteness :)
| + 7884 [dfan harmoni] Well, it's slow, but it was the most convenient way to set up an array
+ 7846 [green FreeBS] irb(main):001:0> load 'numreader.rb'
| 7858 [green FreeBS] I don't know how that cropped up in there... if you remove it, the program
| 7885 [matju cam.or] Note that French and British systems, 10**12 is called a billion, and
+ 7851 [raja cs.indi] Common Lisp's 'format' routine offers this as a built-in facility with the
7854 [dblack candl] ruby -e "system %q{gcl -batch -eval '(format t \"~r\" 123)'}"
8029 [gnhurst hurs] I couldn't get to your perl script, but I found the others, as well as
8065 [Dave Pragmat] With just one parameter in the block, and a yield that passes more
^ InterBase & Ruby - a really nice combination
7761 [jilanik tin.] InterBase now is very very alive. The community is bigger and bigger and
^ Problem : file copy on NT
7763 [barry_shultz] require 'ftools'
^ Some private_instance_method are not private_methods?
7766 [crippel prim] I am still trying to get a full grasp of the Modulo concept - running
7774 [matz zetabit] You are subtracting set of aModule's private methods from set of
+ 7777 [crippel prim] Hm,
+ 7784 [crippel prim] Bingo,
+ 7785 [jweirich one] Huh?
+ 7786 [crippel prim] Never mind I am still confused ...
+ 7796 [Dave Pragmat] Doesn't matter: it's probably still our fault ;-)
+ 7815 [crippel prim] Ah, I just wanted a convenient way to figure out the #private_methods of an object
^ First Impressions of InterBase (was Interbase & Ruby - a really nice combination)
7767 [RichardASchu] I downloaded the version 6 Windows version from Borland last
^ Problem: file copy on NT
7769 [barry_shultz] Can anyone explain the difference?
7772 [crippel prim] On my W2K box with a fairly current cvs version of ruby (cygwin-1.1.6 compiled) the
7847 [barry_shultz] Thanks for checking W2K. I'm also running ruby 1.1.6 compiled that I
7855 [Dave Pragmat] Sorry, but it works fine on my NT4SP4 using the InstallShield Ruby
7856 [barry_shultz] Thanks, Dave, for checking it. I'll investigate my config and try to figure
7859 [barry_shultz] I've checked a bit. I'm running Ruby from TextPad and capturing output
+ 7860 [barry_shultz] Last note about this one. Sorry. Now I see my mistake. I had setup Ruby to
+ 7864 [Dave Pragmat] What's your default directory when running the code? Is this a
7870 [barry_shultz] Dave, in case you didn't see my "final" note on this, I eventually realized
^ Patching Ruby...
7773 [jilanik tin.] Thank you very much Dave :-)
^ Regex array subscripts
7782 [duncan nycap] s="one 123 two" => "one 123 two"
7783 [maurice euro] meaning
7790 [duncan nycap] I'm just a Ruby-nuby and sparse documentation has me trying to construct
+ 7792 [rread datari] I'm still a nuby, but I'll give this shot. I believe regular
+ 7795 [ms iastate.e] A regexp doesn't "return" an integer in the way you seem to be saying,
7800 [sent quality] I'm also a nuby, but here's my take: Just because
^ Can't build Ruby 1.6.1 on Sparc Solaris 2.6
7799 [larry.elmore] Configuring Ruby seems to go smoothly with the patch for 1.6.1 for
7840 [matz zetabit] Seems like a bug in gcc configuration. But I don't have no clue.
7881 [matju cam.or] I remember getting this bug a few years ago because we were using GNU
7900 [larry.elmore] That's what I suspected might be the problem. Unfortunately, I've no idea
7921 [masa stars.g] I guess gcc's include files are not correctly installed.
^ Is Ruby part of any standard GNU Linux distributions?
7801 [mcbreenp cad] Anybody know what it would take to get Ruby into the standard GNU Linux
+ 7804 [huber mclx.c] It's in Debian. I think it's included with potato (1.4.something),
| + 7805 [ben_tilly ho] What are the standard GNU distributions? For Debian it just
| | 7818 [bradclark1 m] Ruby is on Suse 7.0
| + 7839 [tonys mysple] on rpmfind.net there's redhat and mandrake rpm's. i use suse 6.4 here, if
| 7845 [mfp students] It's annoying that it takes them so long though (for instance with KDE).
| 7848 [klemmerj web] This is the price you pay when you try to have a distro that's
| 7865 [mcbreenp cad] RedHat has one, but it doesn't get found from the main search on the
| 7874 [ms iastate.e] I submitted a package to Slackware this morning, for what it's worth.
+ 7806 [larry.elmore] Ruby is on the Debian distribution -- version 1.4.3 is on Debian 2.2r2
| + 7808 [phillipd fos] run freebsd ;-)
| | 7812 [huber mclx.c] Hmm,
| + 7811 [huber mclx.c] le
| 7814 [larry.elmore] Ah. Thanks for the info! Something must've happened to my subscription to the
+ 7821 [crouton weat] Yes, if you mean any GNU based Linux system(as RMS claims) by the phrase
+ 7823 [ptkwt user2.] Debian has it (or at least they have a .deb for it), but it's ruby 1.4.
| 7830 [duncan nycap] debian/woody has ruby 1.6.1 (as someone mentioned) plus *many* extras
+ 7827 [matz zetabit] I've heard that Debian, RedHat, SuSE, Mandrake are going to include
7866 [mcbreenp cad] <977364046.419420.10826.nullmailer@ev.netlab.zetabits.com>...
^ Newbie: howto compiling oglmodule for w2k?
7809 [bratsel yaho] my goal ist to get the oglmodule running on win2k.
^ For anyone who has doubts about the pickaxe on the cover...
7826 [Dave Pragmat] .... "MNU" is an
^ ParseDate and Time interaction
7828 [sent quality] I'm trying to work with dates as they appear in
+ 7835 [fit0298 fite] require 'parsedate'
+ 7861 [kjana os.xax] ....? What version of ruby and parsedate.rb do you use?
7899 [sent quality] Ruby 1.6.1 on Linux. parsedate.rb v1.2 2000-04-
7970 [sent quality] Thanks. This should work as long as the time zone
^ Help a Ruby newbie?
7831 [nolan_d bigf] comp.lang.ruby, but I don't appear to have news access at my current
7833 [dblack candl] No such thing in Ruby :-)
^ Vars in blocks
7832 [duncan nycap] Is the doc. in error (maybe superceded by change in "do" semantics?) or
+ 7834 [fit0298 fite] define "sn" outside block before use inside.
+ 7907 [gotoken math] See The Ruby Language FAQ: Variables, constants, and arguments,
7913 [duncan nycap] Thanks. I've been reading my downloaded Ruby doc. (Debian dist) and the
^ Can we create an Egroup for this list?
7853 [domelia role] I was wondering if anyone on this list has considered creating an egroup for
7857 [Dave Pragmat] Please no!
^ Comparsion Problem?
7867 [jyliu 163.ne] I met a problem when I tried to write some Ruby code to learn Ruby. The
+ 7869 [maurice.szmu] This message is in MIME format. Since your mail reader does not understand
+ 7871 [Dave Pragmat] "Hello".each_byte { |c|
+ 7872 [crouton weat] Examine c.type and "o".type.
+ 7875 [ms iastate.e] You're comparing strings to characters, which has to fail. To specify
+ 7888 [dfan harmoni] In ruby, characters and one-element strings are different types,
7892 [keith groupd] reply inline. . .
+ 7896 [sent quality] if c.chr == 'o'
+ 7908 [dfan harmoni] Right, characters are bytes.
+ 8000 [jyliu 163.ne] Okay, thank you for your reply. Now I got it.
^ Test-First in Ruby: an XP article
7876 [Dave Pragmat] Folks that are following the eXtreme Programming discussions may have
8023 [tc clark.net] I really enjoyed this article. It was a pleasure to read.
8025 [Dave Pragmat] I'm having a whale of a time using Ruby as a test bed to do unit
^ beginner's problem
7877 [rubinubi cyb] Where am I going wrong?
+ 7878 [maurice.szmu] This message is in MIME format. Since your mail reader does not understand
| 7893 [ms iastate.e] Maurice, are you aware you're posting HTML, and can you turn it off?
+ 7922 [hal9000 hype] <Pine.SUN.3.96.1001221101805.21846F-100000@grex.cyberspace.org>,
^ Ruby on Mac OS X
7886 [henryolson j] I'm brand new to Ruby. I have just downloaded Ruby for the Mac OS X Public
7939 [podenski hal] Invoke Ruby via a Terminal window.
^ applications written with ruby and Gtk
7890 [mjais web.de] can you tell me where fo find some free apps written
7898 [hgs dmu.ac.u] and the FAQ
^ defined? problem?
7891 [duncan nycap] Can anyone explain what's going wrong the `if' modifier when using
7895 [decoux moulo] for this line, ruby think that `i' is a method (`i' was never defined as a
7920 [hal9000 hype] ruby
7929 [matz zetabit] Define YOUR comfortable behavior.
+ 7938 [sent quality] something if condition
| 7943 [Dave Pragmat] Remember that Ruby creates a local variable when it first sees an
| 7950 [steve deaf.o] irb(main):007:0> b
| + 7951 [dblack candl] The behavior I find most surprising -- even given the underlying
| | + 7952 [steve deaf.o] That's a good one!
| | + 7954 [Dave Pragmat] Let's play Ruby during the parsing stage (remember, we're not
| | + 7955 [jweirich one] [... good explanation elided ...]
| | | 7958 [Dave Pragmat] In effect that's the way it is. The confusing thing is that the
| | + 7957 [duncan nycap] The fact that paren's in method calls aren't required actually bothered
| | | 7960 [Dave Pragmat] I personally could live with the rule that said that it you have
| | | 7963 [ben_tilly ho] Cool explanation.
| | + 7975 [dblack candl] OK... my question here is: how expensive/illogical/whatever would it
| | 7977 [Dave Pragmat] The other side of the coin is: apart from pathological cases, how
| | + 7978 [dblack candl] Well, that lets *me* out.... :-)
| | + 7981 [crippel prim] THis,
| | 7982 [Dave Pragmat] How would you do that?
| | + 8011 [crippel prim] This is pretty awkward within Ruby. The first parts describes a (semi)
| | | 8015 [Dave Pragmat] I have to admit I got confused following all this through, but what
| | | 8017 [Dave Pragmat] Sorry - that was ambiguous. I meant is was confused about the use of
| | | + 8019 [crippel prim] @__this__ is the this pointer from C++ - so my solution is way
| | | + 8032 [decoux moulo] Probably, and certainly, I'm stupid but why don't you write ?
| | | 8054 [crippel prim] Sure I do this too but this does not work for virtual attributes. One of
| | + 8012 [crippel prim] This is pretty awkward within Ruby. The first parts describes a (semi)
| | + 8013 [decoux moulo] I don't understand you want that
| | 8020 [crippel prim] "> I don't understand you want that
| | 8021 [Dave Pragmat] sym = ...
| + 7959 [matz zetabit] Hmm, I consider dynamic declaration harmful. It appears natual at the
+ 7956 [hal9000 hype] A fair answer. But it forces me to use my very tired brain...
+ 7965 [duncan nycap] Given that a symbol gets "defined" as a variable upon any reference
| 7967 [sent quality] Dave Thomas <Dave@PragmaticProgrammer.com>
| 7969 [Dave Pragmat] Well, what happens is not that it remembers that m is a variable, but
| 7985 [matz zetabit] Good idea. I put it in my ToDo list.
| 7989 [sent quality] Dave Thomas <Dave@PragmaticProgrammer.com>
| 7994 [Dave Pragmat] I kind-of agree. But there are times when I find modifiers are
| 7995 [Dave Pragmat] Or, as I just discovered, you can use statement modifiers on class and
| 8005 [dblack candl] Not exactly a use, in any meaningful sense.... but I'll be brave and,
+ 7972 [matz zetabit] People on ruby-talk force me everyday. Let's share my feelin'
^ RE: beginner's problem (gets and newline)
7894 [sent quality] As the other poster said, you could try strip or
^ Just starting -- am I stupid? (new and initialize)
7897 [matthias.fer] I've been looking and looking in the Ruby documentation on
7914 [gotoken math] Maybe any tutorial about the initialization does not exists online.
7915 [Dave Pragmat] And of course browse chapter 19 of the pickaxe book at a local
^ rb2c: packaging solution?
7901 [nolan_d bigf] I've continued to investigate ways for packaging ruby executables. I
^ Ruby book from oreilly
7905 [mjais web.de] after I have seen, that there is a little ruby book from oreilly
^ Ruby on .NET? A Perl Experience
7906 [Dave Pragmat] Slashdot just referenced the following note from Nathan Torkington
+ 7917 [matt msg.ucs] I believe that's why Microsoft dropped VBScript as their preferred
| 8311 [morten hinds] Is anybody investigating how to run Ruby on the Java VM?
| 8319 [schneik us.i] # > >
| 8649 [matt msg.ucs] C# so far. There's not much to it if you already know Java. Just like
+ 7923 [mak imakhno.] How is strong typing supposed to *slow down* the interpretation of Perl
+ 7924 [neilh scinti] This looks to be a limitation of the AS implementation of Perl. JScript
+ 7926 [matju cam.or] I think ActiveState may be omitting some things. According to the
7927 [ben_tilly ho] Central to Perl's design is that it is not typed, and will
+ 7932 [schneik us.i] # Slashdot just referenced the following note from Nathan Torkington
| + 7934 [jsmall laser] SOAP is a simple, universal IDL for e-services - should
| + 7942 [matt msg.ucs] i skimmed it and it seems that MS submitted C#, the CLR (runtime), and most
| 8204 [claird starb] It's a bit like Jini, though, in that developers
+ 7935 [petemcbreen ] I'm really puzzled by the idea of porting Ruby to run on .NET
7936 [ben_tilly ho] Yup.
7937 [schneik us.i] # > Conrad Schneiker
threads.html
top