On 17 Oct 2000, Lars Gullik Bj�nnes wrote:
> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
>
> | >>>>> "Baruch" == Baruch Even <[EMAIL PROTECTED]> writes:
> |
> | >> The effect of the Path p thing is a local chdir. It changes the
> | >> current directory, and then restores it when p is deleted. Does
> | >> this answer to your question?
> |
> | Baruch> It is a good idea then to document this unnoticeable side
> | Baruch> effect. Adding the following line will do wonders to the
> | Baruch> understanding of this code for later maintenance.
>
> Bllrtth... you are allowed to read the source...
>
> src/support/path.[Ch]
Yes, but you mostly do that after you are bit by not understanding the
side effects from the direct code in question. I won't bother reading and
memorizing half of the LyX source code just to understand one module. I'd
expect a normal thing to have good names or at least comments as to why
something is done, especially if its done mostly for an obscure
side-effect that is not apparent from the function name. And in this case
its even more obscure since all that is "done" is creation of an object
instance.
--
Baruch Even
http://techst02.technion.ac.il/~sbaruch/ (My Site)
http://www.redrival.com/jindor/ (My brothers AD&D site)
" Learn to laugh ... it's the path to true love! "
- The Angel in the movie Michael