78045-82317

77820-82320 subjects 78174-82478

bug in shell.rb
78045 [ian@ca ib n.] The Shell.rmdir method in shell.rb doesn't work, because it passes the

how to contribute to a core module?
78048 [fxn@ha hr f.] I've ported CGI.pm's self_url() to easily get URLs that point to the

Log4r and Ruby 1.8.0 in Singleton problems
78054 [david@lo dt ] Somethings rotten...
+ 78055 [decoux@mo lo] What is this module ?
| 78057 [david@lo dt ] I'm sorry. I recreated the test case too quickly (and wrong). Here's a
| 78058 [decoux@mo lo] ruby is trying to load *twice* the same module 'singleton.rb' : it do this
| + 78060 [david@lo dt ] Right. But the log4r.rbx doesn't contain any requirements to include
| | + 78062 [B.Candler@po] ruby 1.8.0 installs its libraries in a different place... so just to be
| | | 78064 [david@lo dt ] require "singleton"
| | + 78063 [decoux@mo lo] What is your complete configuration. I can reproduce it with auto-load
| |   78066 [david@lo dt ] OS X 10.2.6, mod_ruby 1.1.1, Apache 1.3.27, ruby 1.8.0
| + 78080 [dave@pr gp o] I have never understood this: why doesn't Ruby store the cannonical
|   78082 [in6x059@pu l] I always thought this isn't done, so the programmer isn't deluded a
|   + 78086 [dave@pr gp o] 1. Would it be worse than it is now?
|   | + 78094 [markjreed@ma] Depends on whether you think false security is better than no
|   | + 78102 [in6x059@pu l] If there is a solution: Great!
|   | | 78104 [B.Candler@po] #ifndef _myheader_h
|   | + 82303 [markjreed@ma] Depends on whether you think false security is better than no
|   + 78088 [ben@th ng ag] I see the argument, but I don't really like it.  One thing I like about
|     78091 [batsman.geo@] Only because Java enforces a given directory structure. If you had the
|     78117 [gsinclair@so] You would also need the constraint that files and classes be named
+ 78084 [chr_news@gm ] On windows you will get the same error message. However, if you
+ 82301 [chr_news@gm ] On windows you will get the same error message. However, if you

ruby 1.8.0 with VC++
78056 [stefan.staud] if have problems to build ruby 1.8.0 on Win32 with VC++ 6.0. Can anyone
78061 [chadfowler@c] (unpack ruby)
78068 [joey@jo yg b] I built it the day it came out, with the only difference being that I ran

HELP,GET BACK ASAP PLEASE
78065 [princedidon1] ...

I know why my son stays out late on weekend qvstzte g yy
78067 [bou3lvyfo@ce] ...

BUG: Incorrect error numbers being reported with TCPSocket
78071 [NOSPAMcs96an] I'm using ruby 1.8.0 on windows 2000.  I've discovered that when

Problem with ruby-dbi-all-0.0.20 and/or ruby-1.8.0
78074 [B.Candler@po] The following test program works correctly with ruby-dbi-all-0.0.18 under
78081 [B.Candler@po] OK, rolling back to dbi-0.0.18 didn't fix this, so I've dug around some more.
78083 [decoux@mo lo] alias dup clone
78085 [B.Candler@po] alias :dup :clone
78087 [decoux@mo lo] Why ? alias is a keyword
78092 [B.Candler@po] OK, that's new to me. I got most of my syntax from the Pickaxe book, and

format number with comma separators?
78089 [chrismo@cl b] I'm brain dead and just trying to get formatted numbers in a task that's
+ 78093 [chrismo@cl b] Found this: http://www.rubygarden.org/ruby?FixNumFormat
| 78101 [bob.news@gm ] "Chris Morris" <chrismo@clabs.org> schrieb im Newsbeitrag
| 78107 [austin@ha os] I've created a "very" robust version that can handle differing separators,
+ 78095 [markjreed@ma] Unless there's something I don't know about - a distinct possibility
+ 78097 [fxn@ha hr f.] % ruby -e 'puts "456778904".gsub(/(.)(?=.{3}+$)/, %q(\1,))'
| 78099 [fxn@ha hr f.] That spurious line at the end uses a regex that works for negative
| 78103 [wkb@ai ma l.] irb(main):001:0> puts "-123456789.01".gsub(/(\d)(?=\d{3}+(\.\d*)?$)/, '\1,')
| + 78105 [tom@in oe he] Yours,
| + 78108 [fxn@ha hr f.] irb(main):003:0> puts "-123456789.0123".gsub(/(\d)(?=\d{3}+(\.\d*)?$)/, '\1,')
| + 78109 [wkb@ai ma l.] Whoops,
+ 82304 [markjreed@ma] Unless there's something I don't know about - a distinct possibility
  78098 [bob.news@gm ] "Mark J. Reed" <markjreed@mail.com> schrieb im Newsbeitrag

RockiT
78096 [BCoish@Dy ax] Are there any resources available online that describe RockiT's

FXIconList Questions
78100 [kelkoura@so ] I have a class that extends FXIconList; I'm having some trouble with a
+ 78106 [lyle@us rs s] I will send a modified version of the 'iconlist' example program to Karl
+ 82306 [lyle@us rs s] I will send a modified version of the 'iconlist' example program to Karl

ThreadGroup#enclose
78110 [dave@pr gp o] I'm probably being very dense, but could someone explain a practical use
78112 [nobu.nokada@] It was introduced for the sake of multiple Tk interpreter.  See
78113 [matz@ru y- a] Yep, typically SafeTk wants threads created by unsafe interpreter
78114 [dave@pr gp o] In what way is it different to ThreadGroup#freeze?
78124 [matz@ru y- a] You can't start new thread in the frozen ThreadGroup.

No trailing spaces after closing here doc tag?
78115 [chrismo@cl b] var = <<-DOC
78128 [dooby@d1 .k ] Ruby insists on a newline following the here-doc closer.
78168 [chrismo@cl b] heh ... yes.

Anything like Mason in Ruby?
78116 [app1tam@up .] I'm interested in server-side dynamic web content.  I've had some experience
+ 78121 [aredridel@nb] Drew, you may seriously want to look at Amrita.  It's got a nice feature
+ 78134 [matt@te hn r] Mason is huge, complex and far more than you need for what it sounds like

ASSISTANCE
78126 [safomyla@fs ] I am Ms. Safonova Lyudmyla, a person from South Africa undergoing medical treatment. I am married to Dr. Alan Safonova Chris who worked with Malaysia embassy in South Africa for nine years before he died in the year 2000.

User-defined class coercion?
78129 [markjreed@ma] I would like to define my own class that works as a number when
+ 78130 [matz@ru y- a] class Foo
| + 78131 [markjreed@ma] MR = me
| + 82307 [markjreed@ma] MR = me
+ 78135 [dave@pr gp o] Coerce is both an instance method of Numeric and part of a
  78157 [jbshaldane@h] But...
  78167 [dave@pr gp o] Oops - and I even documented that...  sigh

Ruby is Great: [Was -- Re: User-defined class coercion?]
78133 [mwilson13@co] And that's only one of the many charms of Ruby. :-)

[OT] Re: What's New and Shiny in Ruby 1.8.0?
78136 [dooby@d1 .k ] It doesn't roll off the tongue like the original IMHO :)
+ 78138 [dooby@d1 .k ] Arghh, there's a redundant variable in that sig.
| 78149 [in6x059@pu l] I would've left it in. (For me) it makes a nice snippet more
+ 78155 [hgs@dm .a .u] Hugh

Class variables, module inclusion and instance_eval
78140 [tim@ba es id] I've been writing a library that one uses by including it in one's own
+ 78144 [B.Candler@po] I can't answer your clearly-phrased questions on class variables, but there
+ 78152 [chr_news@gm ] This has to do with Ruby's scoping rules - here is an example I changed
+ 82310 [chr_news@gm ] This has to do with Ruby's scoping rules - here is an example I changed
  + 78153 [chr_news@gm ] I maybe the following example is instructive too
  + 78172 [tim@ba es id] Hmm, I can't find references to "included" anywhere, although I admit I
  | 78181 [kirindave@le] Unless I'm mistaken, it's because, when you use the string form, you're
  + 82311 [chr_news@gm ] I maybe the following example is instructive too

instance_eval and Class Variables
78141 [tim@ba es id] The previous email had "instance_eval" in the title, because I meant to
78231 [matz@ru y- a] This is normal.  Class variables are resolved using static scope.

Marshal format "safe"?
78142 [rpav@us rs s] I experienced an error today on what appeared to be bad data fed to
+ 78146 [bob.news@gm ] "Ryan Pavlik" <rpav@users.sourceforge.net> schrieb im Newsbeitrag
+ 78189 [matz@ru y- a] Define "safe" first.
  78215 [rpav@us rs s] I would say that "safe" in this case would be 1) not executing anything
  78220 [matz@ru y- a] If you find a flaw, tell me privately ;-)

cygwin-provided ruby 1.6.8's map/chomp can't remove dos newlines?!
78145 [jhonold@bi f] user@HOST ~/julia/proj
+ 78147 [bob.news@gm ] "Justin Honold" <jhonold@bigfoot.com> schrieb im Newsbeitrag
| + 78197 [jhonold@bi f] 1.6.8/win32 works fine too, as does 1.6.8/netbsd.  this seems to be a
| + 82316 [jhonold@bi f] 1.6.8/win32 works fine too, as does 1.6.8/netbsd.  this seems to be a
+ 78246 [truls@th ru ] Just mount the directory (or a suitable parent directory) as a text

Can't marshal MatchData?
78148 [gsinclair@so] Folks,
+ 78150 [B.Candler@po] procs ?
+ 78154 [bob.news@gm ] "Gavin Sinclair" <gsinclair@soyabean.com.au> schrieb im Newsbeitrag
  78162 [gsinclair@so] I didn't really want to store them, I was just mucking around, so I'm

Why does Ruby have callcc?
78151 [invalid@in a] I understand, in a woozy sort of way, what callcc does. What I
+ 78158 [harryo@qi so] I'd be interested to read about some real-world examples where people have used callcc, not just to try it out, but because it was the "right" way to do something (for efficiency, or code brevity or whatever reason).
| + 78159 [B.Candler@po] I think Seaside/Borges falls into this category.
| | + 78161 [harryo@qi so] Do you have any URLs for this?  I did a quick Google, but found a Smalltalk site.  As far as I can tell, Seaside was some Ruby code that ended up in Smalltalk as Borges?
| | | 78169 [B.Candler@po] No, it was the other way round :-) Anyway,
| | | + 78171 [B.Candler@po] Just installed, it was a doddle: you need 'installpkg-0.0.1' and
| | | + 78196 [julian@be a4] Yeah, that's the main site for Seaside, probably: http://beta4.com/seaside2
| | + 78170 [james_b@ne r] As I recall from RubyConf 2002, the use of continuations in Borges was
| | | 78192 [julian@be a4] Well now, it's not that it doesn't scale - you just have to be careful
| | | 78208 [drbrain@se m] =20
| | + 78200 [julian@be a4] Yup, absolutely.
| | + 78411 [avi@be a4 co] It is.
| + 78182 [bob.news@gm ] "Harry Ohlsen" <harryo@qiqsolutions.com> schrieb im Newsbeitrag
| | 78275 [jweirich@on ] You are probably refering to the "Same Fringe" problem ... you'll find
| + 78247 [ben@th ng ag] I have been interested in these continuation-thingys for a while now, so now
|   + 78252 [dan@si he or] They don't--there's no inherent strange syntax to them. The syntax
|   | + 78254 [hal9000@hy e] now
|   | + 78263 [ben@th ng ag] Like Hal said, I meant why do they have the strange syntax they do "in Ruby".
|   |   + 78271 [drbrain@se m] by". =20
|   |   | + 78272 [drbrain@se m] irb(main):007:0> c =3D Continuation.new; puts 'hi'
|   |   | + 78290 [ben@th ng ag] Interesting... now I'm trying to understand what happens here when you
|   |   + 78273 [dan@si he or] Ah, OK. With the reference to the ll1 stuff, I was assuming you were
|   |   | + 78274 [djd15@po cw ] As for why callcc takes a block (I didn't see this in any of the replies
|   |   | | 78291 [ben@th ng ag] Ok, and the reason you need to have this lambda is that callcc is a
|   |   | | 78299 [jweirich@on ] Actually, no.  One of the useful things to do with continuations is to
|   |   | | + 78322 [djd15@cw u. ] Correct. You need to wrap it in an anonymous function to pass along the arguments.
|   |   | | | 78323 [djd15@cw u. ] Bah, sorry about the formatting. My last mail is
|   |   | | + 78427 [ben@th ng ag] Continuation.new was meant as a replacement of callcc.  The continuation would
|   |   | |   + 78428 [djd15@po cw ] This works, but only because you're implementing both with callcc.  If
|   |   | |   | 78430 [ben@th ng ag] Well... considering that at the moment there isn't any other way to create a
|   |   | |   | 78437 [djd15@po cw ] Well, Continuation.run seems to me to be trivially the same as callcc,
|   |   | |   | + 78448 [ben@th ng ag] Wouldn't it print 1 and return 2?
|   |   | |   | | 78452 [djd15@po cw ] Well, I did "puts Continuation.run(method(:foo), 1, 2)", which prints
|   |   | |   | | 78469 [jweirich@on ] The problem with this that I see is that Continuation.current implies
|   |   | |   | + 78463 [martindemell] Continuation.resume?
|   |   | |   + 78440 [jweirich@on ] Ahh, that's where the confusion is!  Callcc doesn't stand for "call
|   |   | |     78444 [ben@th ng ag] I actually understood that -- I just found it confusing.  Offhand, I
|   |   | |     + 78449 [mwilson13@co] If they're created, they have a constructor. The constructor is not
|   |   | |     + 78450 [djd15@po cw ] Perhaps Continuation.new isn't the right method name.
|   |   | |     | 78455 [B.Candler@po] Actually, I think Proc.new {..} and proc {..} are no longer identical in
|   |   | |     | 78458 [B.Candler@po] $lines = {}
|   |   | |     + 78471 [gsinclair@so] MatchData.
|   |   | |     | 78472 [djd15@cw u. ] That might be a good renaming of the existing instance method call. But with Continuation.call, we were
|   |   | |     | 78473 [djd15@cw u. ] Well, I guess the idea would be that Continuation.current would be the continuation of
|   |   | |     + 78524 [flgr@cc n. e] Moin!
|   |   | + 78285 [ben@th ng ag] No worries.  :)
|   |   + 78288 [jweirich@on ] Continuations come out of a style of programming called Continuation
|   |     78294 [ben@th ng ag] "Well, if you remember with CPS, when you call a function you pass in a
|   |     78340 [dan@si he or] It's important to note that the stuff referenced in the above link,
|   + 78266 [mwilson13@co] First, I'm sure you know more about continuations than I do, because I
|   + 78269 [mwilson13@co] you'll get a long list of academic research papers relating to
+ 78177 [airboss@no e] I can't explain the "how'd it get there" part; I'll leave that to Matz
  78190 [matz@ru y- a] The official answer is "why not".  I provide the features, you use
  + 78191 [ben@th ng ag] Heh, best quite ever.
  + 78336 [batsman.geo@] How consistent is this w/ your "no featuritis" policy?  In LL2 you had
    78362 [matz@ru y- a] There's strong reason not to have macros in Ruby, as I believe.
    + 78375 [denshimeiru-] Naq gurl'er gur bayl jnl gb trg bhg bs fbzr rivy pbafgehpgf...
    | + 78399 [martindemell] Best piece of fallthrough abuse since Duff :)
    | | 78409 [drbrain@se m] Look more closely, it doesn't use fallthrough.  Ruby's case is not the
    | | 78412 [martindemell] Oops - yes, you're right.
    | + 78413 [dooby@d1 .k ] puts "Hello World"
    |   + 78421 [gsinclair@so] Did you test this?  I didn't, but it appears to me that it will loop
    |   | + 78424 [dooby@d1 .k ] I did.  It's a 'copy' of Rudolf's program.
    |   | + 78451 [dooby@d1 .k ] I think variables follow the scoping rules you are used to.
    |   + 78425 [nathaniel@NO] I guess the contest this week is to see who can implement Basic the best
    |   + 78456 [denshimeiru-] Well, that was not my point.
    + 78461 [ gm@na el gr] is the rationale behind not using macros in Ruby documented somewhere?
      78474 [batsman.geo@] _           _
      + 78475 [djd15@cw u. ] As I understand it, continuations are, in a way, a
      | 78478 [B.Candler@po] OK. So if you had object or variable x in scope at that time, you still have
      | 78482 [dan@si he or] More exactly, after a longjmp the stack *pointer* is put back to
      + 78476 [decoux@mo lo] [ruby-talk:69304]

Ruby 1.8.0 embedded
78156 [stefan.staud] I use ruby 1.8.0 embedded in a C++ application under Win2000. I use the
78164 [decoux@mo lo] You are lucky

RockiT Install problems
78160 [BCoish@Dy ax] Has anyone else run into Rockit installation problems using Ruby 1.8.0?
78163 [chadfowler@c] I didn't have any issues with seg faults.  I'm running on Windows XP and

newbie question from a smalltalker
78165 [adriano.volp] Dear all,
+ 78166 [lyle@us rs s] I will be interested to see some of the other replies to your questions,
+ 78179 [mwilson13@co] I hope that you can put together a list of the tools you would like to
| + 78186 [bob.news@gm ] "Mark Wilson" <mwilson13@cox.net> schrieb im Newsbeitrag
| | + 78187 [dblack@su er] sym = sym.to_sym
| | + 78194 [ben@th ng ag] For what it's worth, I think a tool that could do what Adriano's asking for
| |   78371 [wsdng@on in ] If you do so, have a look at the RefactoringBrowser, Smalllint and the
| + 78306 [wsdng@on in ] The main strenght of Smalltalk IDEs are the debugging features.
+ 82312 [lyle@us rs s] I will be interested to see some of the other replies to your questions,
  78173 [gsinclair@so] I'd like to read about how the Smalltalk environment fits together
  + 78176 [lyle@us rs s] I've only played around with Squeak Smalltalk, but I assume that all of
  + 82313 [lyle@us rs s] I've only played around with Squeak Smalltalk, but I assume that all of
    78183 [dave@pr gp o] I agree that IDEs are a great environment for some folks. But just for
    + 78188 [adriano.volp] You are right! You can always emulate every tool and bell and whistle with
    | + 78193 [dave@pr gp o] Design? Where's the productivity is design? You're only working when
    | | + 78198 [brett_willia] Yikes!  Maybe you can define working harder as more typing, but I don't see
    | | | 78206 [dave@pr gp o] Why do you have to retype things you didn't design properly? It sounds
    | | | 78207 [brett_willia] Yes, yes, you can all stop making fun of me now.  I accept the label of
    | | | + 78209 [mgarriss@ea ] <bite>  I have found that of all the languages I have used, Ruby seems
    | | | + 78228 [dave@pr gp o] No, in all seriousness I spent about 2-4 hours up front thinking about
    | | + 78199 [hal9000@hy e] obtain
    | | + 78201 [wjl@ic ca er] Wow, this is a good idea! I can just see it: you hook up a little device
    | | + 78276 [jweirich@on ] Dang!  I'm in trouble.  I caught my left index finger in the car door
    | |   78277 [dblack@su er] Sounds like your code is weakly typed....
    | |   78278 [harryo@qi so] Dear oh dear oh dear :-) !!
    | + 78211 [mwilson13@co] One thing Ruby offers here is an excellent unit testing framework.
    + 78202 [mgarriss@ea ] Although I can't test it in my current enviroment, I believe that ctags
      + 78203 [Mark.Volkman] ...
      + 78210 [lyle@kn lo y] Actually, I can confirm it ;) I use the CodeBrowser (I think that's its
      + 82317 [lyle@kn lo y] Actually, I can confirm it ;) I use the CodeBrowser (I think that's its
        + 78212 [mgarriss@ea ] Yea...If I remember right, ctags was much better at some languages then
        | 78223 [brett_willia] The ctags version that is Open Source is Exuberant ctags, which supports
        | 78227 [mgarriss@ea ] One might be able to call ctags from a ruby script, take the output, and
        + 78261 [gsinclair@so] It's a limitation of ctags, and not one that's likely to be overcome
        + 78303 [wsdng@on in ] ECB is a very powerful emacs tool. I use it for about a year now and
threads.html
top