Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] Ruby DATA Constant in 1.0 and Debug

Hello All - I recently decided to give the latest DLTK another look.  I picked up the 1.0 release from this ZIP:

dltk-S-1.0M3-200711091536-incubation.zip

This code:

puts "hi"
DATA.each do |l|
  l.chomp!
  puts "#{l}"
end
__END__
line a
line b
line c

produced this output:

hi
/home/gallard/ws33ruby/say-hi/hello.rb:2: uninitialized constant DATA

when attempting to use 'Debug'.  This does _not_ occur using 'Run'.

In 'Debug' this does occur using either the 'Basic' or the 'Fast' debugger. I do not have the active state functionality installed.


My system:
Ubuntu (Gutsy Gibbon)
Ruby 1.8.5 (apt install)
Ruby-Dev (apt install)
ruby-debug (0.9.3) (gem install)
ruby-debug-base (0.9.3) (gem install)

Incidentally, I would have added this to JIRA, but that seems to be a restricted function, so e-mail it is.

Regards, Guy


Free pop3 email with a spam filter.
http://www.bluebottle.com/tag/5

Back to the top