On 03/09/08 11:50, Ben Schmidt wrote:
> Tony Mechelynck wrote:
>> On 03/09/08 06:11, Bill McCarthy wrote:
>>> Hello Vim Developers,
>>>
>>> I noticed a global variable that doesn't appear to be
>>> intentionally set.  The variable `cpo_save' undecorated and
>>> outside a function is implicitly global.
>>>
>>> Unfortunately `verbose let' does not reveal where it is set.
>>>    I found three places - there could be more:
>>>
>>>       vim72/ftplugin/hamster.vim
>>>       vim72/ftplugin/vim.vim
>>>       vim72/plugin/matchparen.vim
>>>
>>> The solution is to (1) prefix with `s:', (2) unlet, or (3)
>>> do both.
>>>
>> The ":let" statement never remembers where its operand was set (unlike
>> :set, :map, :autocmd, :hi, :function and :command).
>>
>> In this case, the above precautions are prudent, but only really
>> necessary if those scripts can interrupt each other, which I don't think
>> can happen in this case.
>
> Or if they can be sourced from another script whose variable they could
> clobber, which is definitely possible. Of course, you can argue that
> hypothetical script is poorly written, but still...
>
> At any rate, I'm sure all will agree it should be fixed.
>
> Ben.

Let/unlet could still clobber another variable (however, a variable 
which must be _kept_ over the opening of a file or over the sourcing of 
all global plugins shouldn't have such a suspicious name) -- unless, of 
course, a script variable were used.

I'm saying it might be good to fix it but I would give it a low priority.


Best regards,
Tony.
-- 
The temperature of Heaven can be rather accurately computed.  Our
authority is Isaiah 30:26, "Moreover, the light of the Moon shall be as
the light of the Sun and the light of the Sun shall be sevenfold, as
the light of seven days."  Thus Heaven receives from the Moon as much
radiation as we do from the Sun, and in addition 7*7 (49) times as much
as the Earth does from the Sun, or 50 times in all.  The light we
receive from the Moon is one 1/10,000 of the light we receive from the
Sun, so we can ignore that ... The radiation falling on Heaven will
heat it to the point where the heat lost by radiation is just equal to
the heat received by radiation, i.e., Heaven loses 50 times as much
heat as the Earth by radiation.  Using the Stefan-Boltzmann law for
radiation, (H/E)^4 = 50, where E is the absolute temperature of the
earth (~300K), gives H as 798K (525C).  The exact temperature of Hell
cannot be computed ... [However] Revelations 21:8 says "But the
fearful, and unbelieving ... shall have their part in the lake which
burneth with fire and brimstone."  A lake of molten brimstone means
that its temperature must be at or below the boiling point, 444.6C.  We
have, then, that Heaven, at 525C is hotter than Hell at 445C.
                -- From "Applied Optics" vol. 11, A14, 1972

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui