[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Declaring a local dynamic variable?
From: |
Joost Kremers |
Subject: |
Re: Declaring a local dynamic variable? |
Date: |
23 Sep 2013 22:14:08 GMT |
User-agent: |
slrn/pre1.0.0-18 (Linux) |
Barry Margolin wrote:
> In article
> <slrnl40qtk.31s.joostkremers@j.kremers4.news.arnhem.chello.nl>,
> Joost Kremers <joostkremers@yahoo.com> wrote:
>> Well, it would be great if the byte compiler could distinguish between
>> the two cases, but apparently it's not. So I guess the question comes
>> down to how easy/difficult would it be to implement a compiler that can?
>
> On what basis would it distinguish them? Search all packages to see if
> any of them declare the variable?
I realise that's a rhetorical question, but that wouldn't be a very good
idea. Suppose you mistype a local variable and some package happens to
define a dynamic variable with the misspelled name...
Personally, I'd prefer to declare such a variable explicitly, not only
because of the compiler but also because it tells a human reading the
code that they're looking at a dynamic variable.
--
Joost Kremers joostkremers@fastmail.fm
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
- Re: Declaring a local dynamic variable?, (continued)
- Message not available
- Re: Declaring a local dynamic variable?, Barry Margolin, 2013/09/20
- Re: Declaring a local dynamic variable?, Andreas Röhler, 2013/09/20
- Message not available
- Re: Declaring a local dynamic variable?, Barry Margolin, 2013/09/20
- Re: Declaring a local dynamic variable?, Andreas Röhler, 2013/09/21
- Message not available
- Re: Declaring a local dynamic variable?, Barry Margolin, 2013/09/21
- Re: Declaring a local dynamic variable?, Andreas Röhler, 2013/09/21
- Message not available
- Re: Declaring a local dynamic variable?, Barry Margolin, 2013/09/21
- Re: Declaring a local dynamic variable?, Joost Kremers, 2013/09/23
- Message not available
- Re: Declaring a local dynamic variable?, Joost Kremers, 2013/09/23
- Re: Declaring a local dynamic variable?, Barry Margolin, 2013/09/23
- Re: Declaring a local dynamic variable?,
Joost Kremers <=
- Re: Declaring a local dynamic variable?, Barry Margolin, 2013/09/23
- Re: Declaring a local dynamic variable?, Joost Kremers, 2013/09/25
Re: Declaring a local dynamic variable?, Pascal J. Bourguignon, 2013/09/22
Message not available