Eiffel "Gotchas"

07 April 1998


Gotcha #8 - order of local entities

I usually declare my local entities in alphabetical order. Local entities can be declared in any convenient order, can't they?

Or can they? In what context will a routine containing this declaration

   local
      a: A
      b: B

behave differently at runtime from the same routine with the order of declaration reversed:

   local
      b: B
      a: A

ANSWER


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

Eiffel "Gotchas"