1999-2408

1818-2179 subjects 2224-2454

^ slice! ate my machine!
1999 [Dave thomase] Don't try this one unless you have a spare shell window open and are
+ 2004 [thucdat hotm] Is this a bug|feature ?
| 2007 [matz netlab.] Of course it's a bug.
+ 2006 [matz netlab.] Sorry, here's the patch.
+ 2008 [decoux moulo] aestivum% diff -u string.c.old string.c
  2011 [matz netlab.] You're right.  I should have check more.  Here's new patch.

^ Extension and other testing
2005 [Andy Toolshe] Does Ruby have any sort of standard for testing extension modules
+ 2015 [CQN02273 nif] Not packaged, but there is testsupp.rb for testing.
+ 2017 [schneiker ju] Also IIRC Perl (and I think Tcl, among other tools) also give a fairly

^ rb_global_entry
2022 [decoux moulo] I need to access ruby_errinfo and initially I've written (ruby_errinfo is
+ 2026 [matz netlab.] Use rb_gv_{get,set}() for global variable retrieval.
+ 2030 [decoux moulo] It don't exist in 1.4.3, no ?
  + 2039 [matz netlab.] Oops, I have to merge them into 1.4.4, soon to be release.
  | 2103 [komatsu sari] Please apply win32/ruby.def patch to compile today's
  + 2043 [decoux moulo] I've a similar problem with symbols. One of my modules define
    2046 [matz netlab.] OK, I'll add SYM2ID to 1.4.4.

^ class File acting funny!
2034 [DDouthitt cu] Lock.lock
+ 2041 [matz netlab.] First of all, IO and its subclasses does not call `initialize' yet.
+ 2042 [c.hintze gmx] class File acting funny!
  2052 [DDouthitt cu] Aha!
  2063 [matz netlab.] No, I don't think so.  Can you show me your script?

^ Anonymous and Singleton Classes
2036 [Bob.Davison ] I am a Ruby newbie and having some problems getting my mind around certain
2045 [matz netlab.] (a) `Class::new' should call `inherited' because it creates new
2050 [Bob.Davison ] OK, so would I be right in saying that it's an implementation thing and you
2062 [matz netlab.] Hmm, there was discussion about this matter before, without explicit
2072 [Bob.Davison ] Matz,

^ Load error message
2038 [schneik us.i] # ruby -I/driver/tests/tools/src gtkbrows.rb
2044 [matz netlab.] Including load_path information in LoadError exception is little

^ Lockfiles
2053 [DDouthitt cu] Only sometimes :-)
2058 [c.hintze gmx] Lockfiles
2060 [DDouthitt cu] This is not guaranteed to work.  This shows the danger of locks: in the
2075 [kjana os.xax] ....And same is true when system is used.  Why can you believe a file
2076 [DDouthitt cu] set -o noclobber
2078 [c.hintze gmx] But you have to look, how it is implemented in the corresponding

^ eval.rb fails
2057 [thucdat hotm] (eval):1: parse error
2061 [matz netlab.] The newline terminates the statement, so that poor Ruby does not
2071 [hgs dmu.ac.u] until
+ 2073 [thucdat hotm] The doc is fine, this happens only if you try to execute 'until' block
| 2074 [hgs dmu.ac.u] Yes, that is true.  Discussion off list and experimentation confirms this.
| 2077 [crouton duel] Umm, I think it is the limitation of eval.rb.
| + 2079 [thucdat hotm] This is it, it's gonna be my Ruby Shell. Dave Thomas advised me about it
| + 2081 [hgs dmu.ac.u] There is quite a lot in that contrib directory.  Could someone
|   2082 [fit0298 fite] Please see a URL:  <http://www.ruby-lang.org/en/raa.html>
|   2083 [hgs dmu.ac.u] Thank you
+ 2080 [matz netlab.] It's a bug in eval.rb, not in Ruby.

^ A thought
2064 [DDouthitt cu] Ruby is nice and provides some nice features for those tripping and bumbling in from procedural programming languages.
2065 [andy Toolshe] These features aren't so bad; the implicitly global Perl-like

^ unsubscribe
2066 [bi28261 Apol] *****    ***   	  ***  *      *****  *   *  ***  *

^ A thought
2067 [schneik us.i] This might not be an either/or sort of thing. For instance, Perl
2068 [andy Toolshe] That could be quite interesing -- you could check for adherence

^ Ruby/GTK+ question about imlib --> gdk-pixbug
2069 [schneik us.i] When looking around for imlib (mentioned in the gtk-0.23 Readme file) which
+ 2086 [imain gtk.or] It's a good idea, but I'd hold off for now.  There hasn't been an official
+ 2100 [yashi yashi.] # is there a ruby list in ibm.com? :)
  2117 [yashi yashi.] oops, next stable version of gtk+ might include pixbuf...

^ Ruby, AIX, Oracle
2070 [thucdat hotm] Dear all,

^ Scope violated by import via 'require'?
2084 [c.hintze gmx] I have following found. If I define one module *in* another one, the
2099 [matz netlab.] Well, it's an expected behavior (at least I as expect it ;-)
2101 [c.hintze gmx] So does that mean it works as you intended? May I ask another
2125 [matz netlab.] Yes.
2127 [c.hintze gmx] I have already thought of this. Only I was not sure, if it is the best

^ Array trouble
2087 [thucdat hotm] $ ruby -v
2088 [Dave thomase] Actually it _did_ do it, but it just didn't do what you were

^ Array other wonder
2089 [thucdat hotm] self + other
2090 [Dave thomase] Perhaps you could use the Matrix package - a vector is a Matrix with

^ Array Gotchas
2091 [thucdat hotm] While I was wondering why '+' was the concatenation and '-' was the
+ 2092 [Dave thomase] I'll bite. In what way are they different?
| 2093 [thucdat hotm] [1, 2, 3, 4, 5]
| 2096 [gotoken math] I'm guessing you used eval.rb.  This difference is not in Ruby but in
| 2097 [crouton duel] In addition, bcause array indice have range from 0 to size-1,
+ 2094 [gotoken math] At first, `+' and `concat' is slightly different.
+ 2095 [fit0298 fite] The "Range" object samples.
+ 2098 [matz netlab.] Besides return values, `..' operator creates a range covers including
  2115 [thucdat hotm] Please, irb.rb is more solid than eval.rb.
  2171 [quinn envy.u] Dat

^ #guide
2102 [bi28261 Apol] *****    ***   	  ***  *      *****  *   *  ***  *

^ ARGF or $<
2104 [hgs dmu.ac.u] Has anyone any examples of how to use ARGF or $< as I cannot find much
2105 [fit0298 fite] Have you read next page ?  I can find them.
2106 [hgs dmu.ac.u] Yes, but it doesn't explain how to use them.  ARGF is
+ 2107 [Dave thomase] I'll add the examples to the next version of the FAQ.
+ 2108 [fit0298 fite] If you write the paragraph, how do ?
  + 2109 [decoux moulo] see io.c
  + 2111 [hgs dmu.ac.u] Having seen the different answers, I can see that it is more than
    2113 [Dave thomase] The concatenation of the contents of all the files....
    2114 [hgs dmu.ac.u] Agreed.
    2116 [schneik us.i] I think this (plus the latest suggestion by Dave Thomas) is a big

^ Is Ruby Ready?
2110 [thucdat hotm] From the messages discussing interesting issues i.e. class variables, I am
2112 [Dave thomase] Andy and I are using Ruby as a central component in a development for

^ ARGF vs. $<
2118 [Dave thomase] Sorry to add to the confusion, but...
2121 [matz netlab.] They are same in semantics, but syntactically, $< is a read-only
2140 [schneik us.i] I don't know if Dave also wants to include the following in his
2141 [Dave thomase] I'm documenting English.rb in the section on library files, although
2161 [schneiker ju] both

^ TRUE vs. true
2119 [Dave thomase] As far as I can tell, 'true' is a symbol built in to the lexer which
2120 [matz netlab.] No.  Once upon a time, when `nil' was the only false value, there were

^ ruby-glade
2122 [schneik us.i] I had some trouble trying to retrieve glade-ruby. First, when clicking on
2123 [yashi yashi.] $ bzip2 -tvv glade-ruby-0.9.2.tar.bz2
2139 [schneik us.i] Got it. Thanks!

^ load "file", true
2124 [decoux moulo] load(file[, priv])
2126 [matz netlab.] Things like untrusted applets.  E.g.

^ Re: New filelock-0.2.tar.gz in in.coming (II)
2128 [c.hintze gmx] matz, I will send following questions as reply to your reply to my
2132 [matz netlab.] Usually I do not check in.coming directory unless informed by email.

^ Question the sequence in $:
2129 [c.hintze gmx] $ ruby -v
+ 2130 [thucdat hotm] It's the order your PATH is arranged. Rearrange your PATH, you get a new
| + 2131 [decoux moulo] I don't think this is a good idea for security reason. ruby don't add "."
| | 2136 [c.hintze gmx] Yeah, yeah! I am already blamed! I admit I have not thought about
| + 2134 [c.hintze gmx] Sorry, but I do not understand! What has my PATH to do with the
+ 2133 [matz netlab.] Yes, It's intended.  Mostly because security reason.  If you want to
  2135 [c.hintze gmx] Damned! I have written to quickly, indeed. I have not thought about
  2137 [matz netlab.] Even though it's not UNIX way to put application related files into
  2138 [decoux moulo] I'm wrong when the script is setuid, ruby initialize $SAFE = 1 before

^ Scripting and OO -- thought question
2142 [h.fulton att] Here's an opinion question for you all.
+ 2143 [andy Toolshe] He misses a very important point -- it's those stupid little
+ 2144 [Dave thomase] Well, I guess I'd first say that it would clearly be his choice.
| 2145 [thucdat hotm] Many things said above would also be true when replacing 'Ruby' with
| 2146 [andy Toolshe] Sure, but Python fails on the "convenient" count.  I, for one,
+ 2148 [c.hintze gmx] Scripting and OO -- thought question
| 2164 [schneiker ju] For many (if not most) people I know (and know of), "scripting" != "real
+ 2156 [matz netlab.] It highly depends on the definition of `scripting', I think.
+ 2162 [schneiker ju] Wait a minute! A 60,000 line chess program in Java or C++ could turn out to
+ 2169 [schneiker ju] ... And other thing....
  2193 [DDouthitt cu] I write some interesting programs in ksh :-)  Don't knock it...
  + 2194 [perin panix.] Is that 41,000 *new* lines every 5 minutes?  Or is it e.g. 40,900 old
  | 2197 [schneik us.i] Yes, but HOW do they do this?
  + 2199 [c.hintze gmx] Hey, I do not knock it! I also have written some fine things in sh,
    2201 [DDouthitt cu] LogFile.open.readlines.each { }
    + 2206 [c.hintze gmx] Arrrggghhhhh!!!
    + 2207 [schneiker ju] of

^ Ruby/Glade usage questions.
2147 [schneik us.i] First of all, thanks to everyone involved in developing the Ruby GTK+, XML
2150 [yashi yashi.] as soon as glade2rb starts working (again :^) I shouldn't have put
2178 [schneik us.i] Language
+ 2180 [schneik us.i] I also think that it might be useful to look at the "Glade Python Code
+ 2202 [yashi yashi.] it does.  I think some sample .glead files in Glade/Ruby alread have
  2204 [mrilu ale.cx] I think Python can marshal arbitratry construct to the disk. So is it
  2212 [decoux moulo] * the interpreter is a "black box"
  + 2390 [yashi yashi.] # late, late, late, late, late, late ;p
  + 2396 [decoux moulo] if (rb_respond_to(obj, s_dump)) {
    + 2406 [yashi yashi.] I'm sorry, I don't think I get your point.  Are you suggesting to
    + 2407 [decoux moulo] Yes, if you can create a ruby object from your C struct, you can do it. You
    + 2408 [decoux moulo] Well my message is not very explicit, i.e. a little example with 2 struct

^ begin/else
2149 [Dave thomase] Guess what I'm documenting today ;-)
+ 2151 [thucdat hotm] In the first case, if codeA throws an exception, codeB won't be  executed at
| 2153 [c.hintze gmx] Yep!
+ 2152 [c.hintze gmx] begin/else
| 2154 [Dave thomase] Yup! It's in the book in the tutorial section on loops. There's also
+ 2155 [matz netlab.] No technical difference on that assumption.

^ parse bug in 1.5
2157 [mirko.nasato] Ruby 1.5 seems to have a problem when parsing methods called
2159 [matz netlab.] It's not a bug.  It is a bad feature which I'm thinking about
2198 [mirko.nasato] Most languages allow for space between the function identifier and
2200 [quinn ngwee.] This slipperly path looks like one followed by a certain other language.
+ 2203 [schneik us.i] Hmm, must be the overly context-dependent one.
| 2205 [mrilu ale.cx] I have to say I don't agree. Principle of least surprise goes well along
| 2209 [schneiker ju] may
| 2210 [Dave thomase] FWIW, in the book we're recommending that people use parens, but...
| 2216 [mirko.nasato] As a personal rule, i happily avoid parens when the method doesn't require
| 2217 [h.fulton att] I tend to agree with you!
| + 2218 [schneik us.i] require
| | 2219 [Dave thomase] Well, perhaps the first thing to do is to collect examples of cases
| + 2220 [Dave thomase] Absolutely - it's in line with the uniform access principle, and makes
|   2221 [schneik us.i] more
+ 2312 [matz netlab.] I like this expression "hovering near the edge of too complicated".

^ The state of Ruby
2158 [thucdat hotm] Since Tutorial on Ruby in english is still a precious commodity, the growth
2160 [Dave thomase] There are some technical and copyright issues to address, but we hope
2168 [schneiker ju] growth
2170 [Dave thomase] Heh - that's exactly how we feel, and we're writing it.

^ Status report: comp.lang.ruby vote likely to begin soon.
2163 [schneiker ju] Conrad

^ Ruby strict mode and stand-alone executables.
2165 [schneiker ju] Some people want Ruby to have a strict compile mode.
2188 [matz netlab.] There can be several ways to make stand-alone executable from Ruby
+ 2208 [schneiker ju] arbitrarily
| 2226 [matz netlab.] I haven't.  Although it's technically possible on some platforms.
+ 2211 [decoux moulo] The undump program was an old attempt to speed up your Perl

^ Ruby - Show Me
2166 [thucdat hotm] Following is the international alphabetical spelling used especially by
+ 2167 [Dave thomase] This reads from the command line, but the principle's the same
+ 2172 [c.hintze gmx] Ruby - Show Me
  2182 [thucdat hotm] This is a nice application of Array vs Hash in Ruby. There is a slight
  2184 [c.hintze gmx] Yeah! There was an bug, I should check against greater-or-equal ?A.
  2187 [Dave thomase] I've got some advice too.
  2189 [thucdat hotm] Sorry for the misunderstanding.
  2190 [matz netlab.] I haven't given up yet.  Maybe I'm young, at least in mind. :-)
  2192 [thucdat hotm] You're the pride of asians. O'Reilly should invite you next time to the

^ The evolution of Ruby
2173 [thucdat hotm] While following the discussion about the improvements|enhancements|
2174 [Dave thomase] I'm not sure I see your point.
2175 [thucdat hotm] Things will evolve until they reach similar level of complexity.
2177 [c.hintze gmx] I do not buy this!!! IMHO no language, I know currently, can become so

^ Use 'Learning Perl' to learn Ruby
2181 [thucdat hotm] While waiting for the first Ruby book in english by Dave & Andy, I wonder if
+ 2183 [c.hintze gmx] Use 'Learning Perl' to learn Ruby
| 2185 [andy Toolshe] I wouldn't suggest 'Learning Perl' as an intro to Ruby, but
| 2186 [thucdat hotm] You're too fast, you don't get the idea. Since you don't know both books
| 2191 [c.hintze gmx] Ok! I stand corrected. I have never tried to belittle your knowledge!
+ 2195 [quinn ngwee.] Well, if you want to learn ruby, your time would probably better be spent
  2196 [schneik us.i] <Lots of stuff snipped>

^ *DBM#invert
2213 [decoux moulo] classes *DBM has a method #invert, but this method don't seem to work or
+ 2214 [c.hintze gmx] *DBM#invert
| 2245 [matz netlab.] Oops, thank you for the patches.
+ 2215 [decoux moulo] Thanks,

^ schneik@us.ibm.com
2222 [Dave thomase] The CVS stuff is really very easy to use, and has the advantage that
2230 [andy Toolshe] Off-topic, but...
2236 [schneiker ju] or do you

^ Ruby and Eiffel
2223 [h.fulton att] Well, Mirko, I don't know Eiffel (though I have read
2234 [andy Toolshe] The second edition came out in 1997, but it does have
+ 2237 [schneik us.i] Nearly complete novice question: is there any (possible) overlap at all
| 2238 [quinn envy.u] Well, no one really knows what python has in store, but I'd guess it would be
+ 2266 [hgs dmu.ac.u] Having looked at this a little, I can see it would be a good idea.
  2267 [h.fulton att] I am trying to implement the best system I can
threads.html
top