How to guard against bugs like this one?

E

Ethan Furman

John said:
kj wrote:
...

The right answer to this is to make module search return an
error if two modules satisfy the search criteria. "First find"
isn't a good solution.

John Nagle

Then what happens when you *want* to shadow a module? As MRAB suggests,
if you are really concerned about it use a script that checks for
duplicate modules (not a bad idea for debugging), but don't start
throwing errors... next thing you know we won't be able to shadow
classes, functions, or built-ins! !-)

~Ethan~
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,602
Members
45,185
Latest member
GluceaReviews

Latest Threads

Top