Re: Roxen, Pike or by design?

2008-05-22 Thread Bernd Schoeller
Hi Marcus, I think the confusion is not on semantics, but on the discussion level. I have absolutely no doubt that it is impossible to disable override of global identifiers by local identifiers in Pike as it currently stands. I fully agree with your reservations that this would create

Re: Roxen, Pike or by design?

2008-05-22 Thread Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
Well, the context here is the language Pike, so please realize that when talking about global identifiers, this refers to the Pike concept of global identifiers, unless otherwise specified. And I will assume that the same goes for when someone talks about classes and signatures.

7.8 blockers

2008-05-22 Thread Martin Stjernholm, Roxen IS @ Pike developers forum
Perhaps. That's natural in old code that has been in production a long time, otherwise the bug would have been found and fixed by now. Another case is this from the Search module: private mapping(string:int) query_profile_names = ([]); /.../ void flush_profile(int p) {

Unused variables

2008-05-22 Thread Martin Nilsson (Opera Mini - AFK!) @ Pike (-) developers forum
I predict lots of warnings for mutex key objects in the future...

Unused variables

2008-05-22 Thread Martin Stjernholm, Roxen IS @ Pike developers forum
Good point. It would have to be restricted to either noncomplex types or side-effect free initializations, I guess.

Unused variables

2008-05-22 Thread Martin Stjernholm, Roxen IS @ Pike developers forum
You mean people would feel forced to leave out the argument name just to silence the compiler? I can only see that happening for functions in interface classes that defines some kind of callback, and that for some reason need to have a (more or less) dummy body (the warning should of course be

Unused variables

2008-05-22 Thread Peter Bortas @ Pike developers forum
We can have this discussion for 7.10. I'm tentatively against it.

Unused variables

2008-05-22 Thread Marcus Agehall (Roxen IS) @ Pike (-) developers forum
I think we've had this discussion a while ago an decided agains nameless parameters. I'd rather have unused arguments become an optional warning in the compiler than any other wierd workaround. That way, I can detect them if I want to but for the most part just ignore them.

[Bug] Parser.HTML crash

2008-05-22 Thread Bertrand LUPART
Hello, Disclaimer: I'm experiencing a bug in Caudium that makes Parser.HTML to crash. Sorry, i wasn't able to reproduce it with a standalone Pike program due to my lack of full understanding of entities handling in Parser.HTML. There may be a bug in Caudium in this area i'd be happy to solve,

Unused variables

2008-05-22 Thread Per Hedbor () @ Pike (-) developers forum
I really like getting warnings for non-argument unused variables.