Re: routine_id() is not working

new topic     » goto parent     » topic index » view thread      » older message » newer message
eukat said...

No error was thrown when the two files both included a sleep,

No error should be thrown here!!! The whole point of namespaces - this shouldn't be an error!

eukat said...

and none was thrown when routine_id() was used on sleep.

This should be optional. There are cases when you want to just let the code continue when routine_id() can't figure things out, but other times you do want an error to be thrown to catch this bug.

I'm quite partial to Pete's optional parameter idea for this.

eukat said...

So i also suggested it might be more helpful for the crash-on-start to list the routine_id(sleep) lines when it found two sleeps in the same namespace.

If the user specifies that routine_id() should crash, then yes! I fully agree with this.

eukat said...

, and maybe to limit the scope of the post i shouldn't have, mentioned

I'd agree with this principle in general, but I disagree with this particular instance. It's too relevant to the topic at hand to be ignored.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu