Evaluation order changed?

the following does not work with ruby-1.7.2

$CFLAGS += " -I#{incdir}" if incdir = with_config(“db-include-dir”)

what works is

if incdir = with_config(“db-include-dir”)
$CFLAGS += " -I#{incdir}"

it was part of extconf.rb for ruby-dbi. Was there a change in evaluation


Fritz Heinrichmeyer mailto:fritz.heinrichmeyer@fernuni-hagen.de
FernUniversitaet Hagen, LG ES, 58084 Hagen (Germany)
tel:+49 2331/987-1166 fax:987-355 http://www-es.fernuni-hagen.de/~jfh



In message “evaluation order changed?” on 02/07/17, Fritz Heinrichmeyer fritz.heinrichmeyer@fernuni-hagen.de writes:

the following does not work with ruby-1.7.2

Yes, changed. Every local variables should be assigned before its
reference in 1.7.2, even in expression interpolation.