Weird type/identifier conflicts

Frank Heckenbach frank at g-n-u.de
Wed Mar 5 02:50:51 CET 2003


Frank D. Engel, Jr. wrote:

> > unit foo;
> > interface
> > 
> > propagates Bar, Baz, Fooz, Trook, Trog;
> > 
> > implementation
> > end.
> 
> FWIW, I have often wished for a feature like this, too; how about this:
> 
> UNIT foo WITH Bar, Baz, Fooz, Trook, Trog;
> INTERFACE
> IMPLEMENTATION
> END.
> 
> This eliminates the need for an extra keyword.

Seems OK syntactically.

BTW, what about EP modules? They can have several interfaces. I
guess auto-re-exports should only apply to `export all' interfaces.

Frank

-- 
Frank Heckenbach, frank at g-n-u.de, http://fjf.gnu.de/, 7977168E
GPC To-Do list, latest features, fixed bugs:
http://www.gnu-pascal.de/todo.html
GPC download signing key: 51FF C1F0 1A77 C6C2 4482  4DDC 117A 9773 7F88 1707




More information about the Gpc mailing list