Eiffel "Gotchas"

07 April 1998


Oops!

Gotcha #1 - 'min', 'max' and expanded

There aren't a lot of "gotchas" in Eiffel, but here's one to think about:

Should this instruction print "true" or "false"?

   print( (1).max(1) = (1).max(1) )

ANSWER


Eiffel and NICE are registered trademarks of the Nonprofit International Consortium for Eiffel.

Eiffel "Gotchas"