Re: How to create an UUID (Version 1)

new topic     » goto parent     » topic index » view thread      » older message » newer message

One case for a nasty bug waiting to happen (in Phix):

--main.exw 
include somelib.e 
include inc1.e 
--inc1.e 
--include someotherlib.e 
include inc2.e 
--inc2.e 
x = new() 

Without including someotherlib.e that last line is equivalent to somelib:new().
Uncommenting/adding someotherlib.e quietly changes it to someotherlib:new().

So you can break code in some remote location without apparently editing any of the files involved.

Of course things are fine if you always remember to use the correct namespace, re-include at the right level, and/or if there are enough namespace clashes to trigger compilation errors.

Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu