time / update problem
Raphael Mack <[email protected]> Thu, 14 Jul 2005 22:44:04 +0200
| Newsgroups | gmane.comp.lang.eiffel.smalleiffel |
|---|---|
| Message-ID | <1121373844.8592.121.camel@localhost> |
Hello,
what should the following code print?
class MAIN
creation
make
feature
make is
local
now: TIME
do
create c.make
now.update
c.never.update -- is this ever executed???
io.put_string(c.never.elapsed_seconds(now).out + "%N")
end
c: CC
end
class
CC
creation
make
feature
make is do end
never: TIME
end
In my eyes it should be close to 0, but it seems that the line
c.never.update is never done. Is this an invalid call for some reason or
yet another optimizer bug?
Rapha