50673-53702 subjects 51118-53848

String interpolation at will?
50878 [hal9000@hy e] Maybe I'm overlooking something obvious,
+ 50880 [STUCKNER@MU ] Maybe this is too dangerous but
| + 50882 [hal9000@hy e] Well, I guess you'd have to use gsub to escape any existing quotes
| | + 50883 [dblack@ca dl] Although if it's variable interpolation/expansion, you'll just get the
| | + 50885 [hal9000@hy e] To reply to myself: I've just remembered why
| | + 51115 [gsinclair@so] Isn't that what $SAFE is all about?
| + 51001 [messju@la mf] indeed.
+ 50999 [lyle@us rs s] Unless I'm completely misunderstanding your point, what about using

Re: Speed up suggestions (regex obj vs plain usage)
50881 [ryand-ruby@z] WOW! I just found something out that is pretty interesting... too bad I
+ 50896 [nobu.nokada@] Literal other than String doesn't create new instance.  OTOH,
+ 51114 [gsinclair@so] Can somebody tell me why the plural of "regex" is "regexen"?
  + 51117 [ryand-ruby@z] no.
  | 51119 [mike@st k. o] Hope this helps,
  + 51123 [bilotta78@ho] German influence?
  + 51126 [rick@be rd i] plural of ox is oxen

String[#.]interpolate (was Re: String interpolation at will?)
50886 [hal9000@hy e] And to answer my own post again, I find that
+ 50924 [ged@Fa ri MU] Hal E. Fulton (in "String[#.]interpolate (was Re: String interpolation
+ 51002 [messju@la mf] String.interp is always called in global context. you cannot use
  51039 [hal9000@hy e] Perhaps you are right. I don't have time
  51053 [decoux@mo lo] pigeon% cat b.rb
  51075 [hal9000@hy e] Of course, stupid of me. This solution

Creating a method given a block
50889 [hal9000@hy e] Suppose I have a method 'build' to which I am passing
+ 50890 [jeff.gray@in] class Extendable
| 50904 [decoux@mo lo] yes,
+ 50891 [bill@32 68 c] class Foo
  50892 [bill@32 68 c] Uh. No. Don't do that. I should pay attention to those alarms going off in

WIN32OLE_EVENT: is sharing an event sink a bad idea?
50894 [dsu13@at bi ] I'm new to Ruby but so far I think it's an awesome

Re: Welcome to our (ruby-talk ML)         You are added automatically
50899 [limaye@pa be] # help

50900 [qjdong3000@1] 尊敬的新老客户:

Cheap Cigarettes
50902 [smokesdirect] Dear Sir or Madam

class documentation
50906 [volkmann2@ch] Is there a general concensus as to the best tool/format for documenting Ruby
50933 [gotoken@no w] No, there isn't as far as I know.
50967 [Dave@Pr gm t] Your post shamed me into action, so...
50970 [gotoken@no w] Thank you very much!  It works.
50971 [nobu.nokada@] Also in ruby-mode, fill-paragrah works so at a paragraph starts
50973 [gotoken@no w] Indeed!  I had misunderstood :(
+ 51024 [Dave@Pr gm t] Would it be useful to have rdoc understand
| + 51160 [dsafari@pa a] Personally, I don't like =being/=end and prefer to just use the #'s.
| | 51190 [tsiivola@cc ] I would propably use them more if emacs ruby-mode didn't take so long to
| + 51162 [james@ja es ] This would be quite helpful.  I generally leave a space between the # and
|   + 51171 [jim@fr eb dp] Actually, I think the mono space only kicks in if there is
|   + 51176 [Dave@Pr gm t] RDoc tries to work out the natural left margin for your text, and then
|     51259 [james@ja es ] Oh, OK, thanks.  That makes life easier.
+ 51057 [ged@Fa ri MU] I use "filladapt" with ruby-mode to edit comments, and it works much

Conference deadline approaching
50908 [dblack@ca dl] Just a reminder: registration for Ruby Conference 2002 runs through

50909 [watanabe@gl ] ?f?G???j?????????????l?E?E?E

Inverse of id2name?
50925 [mfraser@se s] If I have a variable set to :test, I can convert that to "test" by calling
50926 [Dave@Pr gm t] a.intern
50939 [tsiivola@cc ] I was looking for the exact same thing last week -- and being too timid to
50944 [Dave@Pr gm t] I've updated the book's errata. Good catch.

Scriptometer: measuring the ease of SOP (Script Oriented Programming) of programming languages
50928 [pixel@ma dr ] The Scriptometer tries to measure wether a programming language can be

诚邀代理业务,利润可达40%!全新jsp asp.net php虚拟主机
50930 [ ggg@gg .c m] 诚邀代理业务,利润可达50%!全新jsp asp.net php虚拟主机

self as method argument revisited
50931 [dblack@ca dl] [Disclaimer: this isn't intended as a general solution, just something
+ 50947 [transami@tr ] interesting david. just skimmed it over. perhaps it's merely that i just
| 50949 [dblack@ca dl] No, I think it's because you just woke :-)  Just wait til the
+ 51013 [chr_news@gm ] While I am still marveling what problem your are trying to solve -
  + 51008 [chr_news@gm ] whops  that should have been;-)
  | 51045 [dblack@ca dl] Sorry, I misquoted this post in my last answer.  But why do you need
  | 51092 [chr_news@gm ] I guess pure esthetics - the  RC (ruby correct) solution
  | 51127 [jeff.gray@in] I had my first Ruby epiphany when I was working on a netlisting
  | 51129 [ljz@as as .c] We're lucky that Ruby doesn't also have a "spouse" keyword, or else then
  | 51133 [hal9000@hy e] Now you're talking multiple inheritance.
  + 51043 [dblack@ca dl] Don't marvel -- I may well be on the wrong track :-)  I'm not sure I
    51089 [chr_news@gm ] Probably the correct line would (could?) have been

The problem with run-time type checking
50934 [mfraser@se s] One problem that I find crops up in Ruby, but doesn't really happen in
+ 50935 [dossy@pa op ] The beauty of Ruby (and OO in general) is being able to make "objects"
| 50948 [mfraser@se s] How do automated unit tests help with this? I can't figure it out.
| 50978 [nat.pryce@b1] Testing that an object makes correct calls to a library is not the
+ 50951 [pbrannan@at ] This is another way of saying that Array doesn't have a gsub method.
+ 51009 [cyclists@nc ] Regarding question 1, it seems to me that libraries must "crash" when
  + 51019 [cyclists@nc ] Aargh! Of course I meant to say "for the library USER to fix the
  + 51060 [brian@dl or ] people keep saying that the type of an object is just the set of methods
    + 51083 [dblack@ca dl] They mix in Enumerable -- which isn't just a quibble about
    + 51101 [pbrannan@at ] Enumerable is a mixin, not an interface.  It's used to add additional

Avoiding busy waiting
50936 [harryo@zi .c] I have a situation where I'd like to set up a queue that's filled by one
+ 50945 [kjana@dm la ] Yes, ConditionVariable#signal just dequeues a thread waiting on the
| 50954 [harryo@zi .c] Thanks; the Queue class was precisely what I needed!  I'm surprised I've not
| 50956 [hal9000@hy e] not
+ 51054 [hgs@dm .a .u] The solution I saw in

caller lies, or Method#id is wrong, or both
50937 [ryand-ruby@z] So, caller lies. I suspect this is true no matter what. It may also be
50938 [decoux@mo lo] #method create a new object.
50940 [ryand-ruby@z] ARGH! You are right. It makes a copy so you can use it as a closure.
50941 [decoux@mo lo] It's suffisant

50942 [tsiivola@cc ] I may have beed deaf and blind, but Dave really should, while standing on

[ANN] net/netmask.rb, initial release
50946 [airboss@no e] the style of Perl's Net::Netmask. The documentation and unit tests are

Alternitif Bitkisel kanser ilaci Carctol Alternative Cancer Healing
50950 [carctol@ya o] charset="US-ASCII";

__FILE__, ENV, etc. in ri?
50952 [mfraser@se s] Could documentation about built-in variables such as __FILE__, ENV, etc.

Getting a directory tree
50953 [hal9000@hy e] I have a little method here that gets a list of
+ 50955 [dblack@ca dl] Sticking to question #1 for the moment... :-)
| + 50959 [hal9000@hy e] Dumb.
| + 50964 [x@ic im nk .] The same problem David has below. The routine doesn't handle recursive
|   50966 [hal9000@hy e] I fixed David's problem just by doing a flatten...
|   50968 [bruce@co ed ] Hal,
|   + 50979 [bulatz@in eg] but i'm (see 9:44 letter) faster :)  60 seconds vs 100 on my win2k
|   + 50985 [dblack@ca dl] The problem with that is it doesn't include anything whose name begins
|     50986 [nobu.nokada@] Dir["#{root}/**/{.[^.],..?,}*/"].select {|file| not test ?l, file}
+ 50969 [bulatz@in eg] def getdirs(x)

are functions/methods "first class objects"?
50958 [davegaramond] sorry this is a bit philosophical, but i just wonder whether ruby can be
+ 50963 [Dave@Pr gm t] No, I don't believe it can be considered such a language.
+ 51040 [szegedy@no p] I guess, I understand your question. In fact, Ruby is,
  51106 [chr_news@gm ] Try writing something as seemly simple as a functional
  + 51163 [szegedy@no p] class Proc
  + 51166 [szegedy@no p] class Proc
    51177 [chr_news@gm ] That is nice - however
    51179 [szegedy@no p] OK, I see your point.
    + 51187 [chr_news@gm ] Yes - sorry ...
    | 51188 [szegedy@no p] I see, thanks.
    + 51261 [bulatz@in eg] sort_by "es", filenames  # sorts by extension then size
      + 51265 [gotoken@no w] filenames.sort_by{|i| File.extname(i), File.size(i)]}
      | 51272 [bulatz@in eg] i know
      | 51287 [gotoken@no w] oops. I didn't read context :<
      | 51290 [gotoken@no w] Case statement can be replaced an hash (like Christian's [ruby-talk:51284]).
      + 51270 [gsinclair@so] Bulat,
        51271 [gsinclair@so] text,

[ANN] RubyInline 1.0.7 Released
50960 [ryan@om ig o] RubyInline 1.0.7 has been released!
50962 [botp@de mo t] will rubyinline run on windows?
50965 [ryand@ze sp ] Heh... I've been knighted!
51048 [mikkelfj-ant] Couldn't it just depend on a C compiler with configurable settings - Ruby
51076 [ryand@ze sp ] I am. But, as far as I can tell, most people on windows don't compile
51178 [mikkelfj-ant] Not it doesn't - but that is also the nice part of it - it works essentially

available encodings for iconv arguments
50974 [gotoken@no w] How can I get available encodings for iconv arguments?
+ 50981 [heesobpark@y] iconv --list
| 50982 [gotoken@no w] Thanks, but I got
+ 50987 [nobu.nokada@] AFAIK, no portable way.

Yet Another "Thickie" question from Mark
50976 [mark.firesto] I'm now working on porting a game called "Global Destruction" to my BBS
+ 50980 [bulatz@in eg] interpreter itself uses 1-2 megs of memory, so... ;)
| 50984 [mark.firesto] I thought you would say that.  I could just stick all the text in arrays...
+ 50989 [hal9000@hy e] <mark.firestone@gossgraphic.co.uk>

hurdles moving ruby programs from NT to Linux
50994 [andrew_queis] I've been using some Ruby programs on NT to access data on Oracle and
+ 51010 [ADATE@kc rr ] Not speaking out of experience here, but have you looked at Ruby >> JRuby >>
+ 51021 [ADATE@kc rr ] www.freetds.org
| 51068 [andrew_queis] Thanks, I got that running, I think that was the major step.
+ 51038 [ben@bl hr co] Andrew-
+ 51041 [chrismo@cl b] Have you seen Ruby/ODBC [http://www.ch-werner.de/rubyodbc/] ... ? I used it

Teach me about yield
50995 [jobeicus@ho ] i've programmed computers for the greater portion of my life and find
+ 51000 [szegedy@t- n] No, but it makes life sometimes much simpler. (After all
| 51028 [mark.firesto] I second that.  'plain please, Lucy!
| 51110 [michael_s_ca] I'm very new at this, but I look at using yield wherever in C I would
+ 51035 [hal9000@hy e] Here's a way to look at it.

rgl can't produce disconnected graphs
51003 [phlip_cpp@ya] [posted and mailed to package author]
51023 [horst@hd ch ] irb(main):073:0> dg.vertices
51026 [phlip_cpp@ya] Sorry - I tried to imply I knew there was a no bug in RGL proper - just its

embedding ruby inside an application?
51017 [     NO@SP M] Is it easy to embed ruby inside an application?
51275 [matz@ru y- a] Not hard.  But not as easy as Tcl is.
51278 [ryand-ruby@z] Are these being addressed in 1.7 or future versions? Or is this by
51279 [matz@ru y- a] For the good news, it is planned to fix these problems in the next
51331 [alan@di ik t] Is there anything fundamental preventing someone from taking the 1.7
51353 [matz@ru y- a] Time and human resource for this case.  If someone would help us, we

How to implement IME to a ruby/TK entry widget?
51018 [jberard@ip i] I posted a similar query a few weeks ago but I had no answers on how

File.lib bug?
51027 [NOSPAM_jazz_] irb(main):001:0> d=File.join('c:/','windows')
51055 [gotoken@no w] I'm guessing that the reason why File.directory?(d) == false was
51109 [NOSPAM_jazz_] Hmmmm, imho i'd like to see this fixed... Under Unix, if I'm not wrong,
51145 [nobu.nokada@] Essentially, the specification about drive letter is too
+ 51147 [usa@os .a t.] Sorry, this summary is Japanese.
+ 51711 [NOSPAM_jazz_] nobu.nokada@softhome.net says...

gtk label
51029 [manfred@to p] how can i set text (Artikelnummer = ) in the label on the left side
51011 [manfred@to p] #!/usr/bin/ruby -w

SNIPPET: GraphViz -> SVG -> TkCanvas UI Framework
51032 [phlip_cpp@ya] It lets you author graphs (the nodes and edges kind, not the chart kind) in

mysql-ruby: MysqlField class: "type" instance method
51034 [info@mj is d] I am writing a tutorial about mysql ruby and I have a question
51033 [messju@la mf] the types are defined as constants of the MysqlField class. you can build

Native XML type.
51036 [erik@so id o] I would like to see something like this for Ruby, any comments?

Gateway was down...
51037 [Dave@Pr gm t] ...but is now back up.

Regexp: How to Find Legitimate Tokens?
51046 [billtj@z. lu] I am sure questions like these must have been posted before, but for some
+ 51061 [joe@vp p. et] Check out ripper: http://www.loveruby.net/archive/ripper/
+ 51069 [billtj@z. lu] Thanks to all who replied to me directly via email.  It seems that none of

another easy one...
51056 [probertm@no ] My brain just isn't working this morn...
+ 51072 [gminick@un e] Don't know if it is possible to use include? here,
| + 51085 [gminick@un e] c[/[A-Za-z0-9_]/]
| | 51139 [gsinclair@so] puts $1
| + 51086 [probertm@no ] $ cat blah.rb
|   + 51091 [gminick@un e] a = "abc"
|   + 51097 [billtj@z. lu] I think you just had an extra syntax there.
|   + 51141 [kjana@dm la ] On a case statement, `when foo' does equality check by foo.===.  In
+ 51077 [dblack@ca dl] /\w/.match(ch)
+ 51079 [mike@st k. o] Is c a one character string?  If so you can say
| 51104 [probertm@no ] Thanks for all the help, everyone.  I can go back to sleep now.  :-)
+ 51084 [billtj@z. lu] As has been pointed out, I think you were mixing string, regular
+ 51087 [gotoken@no w] Ask ri :)

Lexing ... (was: Re: Regexp: How to Find Legitimate Tokens?)
51062 [probertm@no ] One data point.
51113 [ptkwt@sh ll ] Cool.  I also don't like having a seperate lexer and parse (like using lex
51189 [probertm@no ] There is not too much to show at the moment.  I scan a ruby-ised version

ruby-dev summary 18281-18319
51065 [ttate@kt ja ] This is a summary of ruby-dev ML in these days.

fork problem?
51066 [mengx@tv at ] From Unix command line, I did this
51181 [hgs@dm .a .u] fork { exec readProgram fifo}
51192 [mengx@tv at ] Thanks for the info. The problem is apparently that the two programs(read

Problems with String#gsub!
51067 [vinfoley@iq ] I have here a program to help me do crossword puzzles.  Yesturday, I
51088 [gotoken@no w] Try

REMINDER: Seattle.rb 2002-09-24 Meeting
51073 [ryand@ze sp ] Just a quick reminder and a note. Tomorrow is our monthly meeting and

Using Ruby with other languages
51090 [spam07@th ck] I'm new to Ruby, but before seriously studying the language I would like
+ 51098 [David.Stagne] What is the "simple" program you are running?  "100 times slower" probably
+ 51102 [szegedy@t- n] You can link ther ruby interpreter with your (C,C++) program,
| 51125 [alan@di ik t] Also look at exerb. http://exerb.sourceforge.jp/index.en.html
+ 51108 [billtj@z. lu] If you mean to a stand-alone executable, not currently.  Python generates
| 51150 [bulatz@in eg] see rb2c on yaraa, it does exactly what you want
| 51151 [Graeme.Matth] Not sure if youre talking about win32 only
+ 51138 [gsinclair@so] Seems like there should be something in the FAQ about this.
+ 51152 [bulatz@in eg] 1. are you know difference between compilation and interpretation? are
  51164 [szegedy@no p] You are correct: simple programs are the slowest (realtively),
  51172 [bulatz@in eg] hmmm. i try to say that Ruby overload is about 1000 asm instructions

RE: Creating a method given a block
51105 [jeff.gray@in] Gee, why did I think that Guy might have something to say here.  ;^)