Hi --

On Sat, 21 Sep 2002, Hal E. Fulton wrote:

> Even regular interpolation is potentially dangerous:
>
>   string = "Hi, my name is #{format_hard_drive_and_return_name()}."

Although if it's variable interpolation/expansion, you'll just get the
string:

  irb(main):001:0> s = gets.chomp!;puts "#{s}"
  puts 'blah'    # input
  puts 'blah'    # output

(i.e., it doesn't actually puts 'blah')

And if it's a string constant, it's dangerous anywhere :-)


David

-- 
David Alan Black                      | Register for RubyConf 2002!
home: dblack / candle.superlink.net     | November 1-3
work: blackdav / shu.edu                | Seattle, WA, USA
Web:  http://pirate.shu.edu/~blackdav | http://www.rubyconf.com