Opened 4 years ago

Last modified 6 months ago

#1705 new enhancement

Module names should be unique

Reported by: sjamaan Owned by:
Priority: minor Milestone: 6.0.0
Component: compiler Version: 5.2.0
Keywords: modules, encapsulation, name conflicts Cc:
Estimated difficulty: medium


When you compile a program which uses a module and defines a module of the same name, the compiler should probably give a warning or error.

A practical (simplified) example of this which alicemaz ran into:

I think we can't really do this in the interpreter because re-evaluating an existing module should be possible on the REPL (think incremental development from Emacs etc).

Change History (1)

comment:1 Changed 6 months ago by felix winkelmann

Note: See TracTickets for help on using tickets.