Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0.1
-
None
Description
three etch files, Foo.etch, Bar.etch, Baz.etch.
Foo mixes in Bar and Baz.
Bar and Baz each define a struct Entry ( int x ).
Bar defines a message void barGet( Entry e )
Baz defines a message void bazGet( Entry e )
when you compile Foo the compiler fails because it conducts it search for type Entry from the top down instead of the bottom up. a top down search finds two definitions for Entry. the reference is ambigous and therefore not allowed.
a bottom up search guarantees that barGet binds to Bar's Entry and bazGet binds to Baz's Entry.