From: Robert Klemme Date: 2004-04-09T22:19:14+09:00 Subject: Re: line directives "Andrew Johnson" schrieb im Newsbeitrag news:ikjcc.33539$Ig.1574@pd7tw2no... > Does ruby support anything like #line directives in C or Perl? or > any other way to dynamically change what ruby thinks is the current > sourcefile and sourceline in its warning and error reporting? In C one often had to correct messed up compilers - dunno why you should need that in Ruby though. Anyway, the eval family of functions has often additional arguments that can be used to set file and line: http://www.rubycentral.com/book/ref_m_kernel.html#Kernel.eval Regards robert