|
From: <php...@li...> - 2007-09-10 17:42:34
|
Hi Michael,
> > This means that we have to prefix all *temporary* variables
> > with java_. I don't think this is a good idea.
>
> Well - if you want to similar effect in other environments, then I
> guess this would be needed.
I don't think so. People shouldn't write unnatural code. I have never seen prefixes for temporary
variables such as:
for($myLib_i=0; $myLib_i<100; $myLib_i++) {...}
> that $version was actually the only var that is used in that way.
Other libraries use similar code in their setup. I don't see a problem
with this. I don't even understand the problem.
If you use the following code:
$i=something;
require_once("some_lib.php") ::= { ... for($i=0; $i<100; $i++) ... }
doSomethingWith($i);
then there's a bug in your code, I think. Your global variable "$i" should be named "$myApp_i",
not simply "$i".
Regards,
Jost Boekemeier
Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever
|