Subject: Re: how do I tell if I'm on the interrupt stack?
To: Thor Lancelot Simon <tls@rek.tjls.com>
From: Greg Lehey <grog@lemis.com>
List: tech-kern
Date: 09/06/2001 12:14:19
On Wednesday,  5 September 2001 at 22:20:51 -0400, Thor Lancelot Simon wrote:
> On Thu, Sep 06, 2001 at 11:48:34AM +0930, Greg Lehey wrote:
>>
>>> I can see how it would be useful but good code design should remove
>>> the need for it to be present.  I'd much prefer to see different
>>> entry points pass information along about the current context in
>>> which it is running.
>>
>> Hmm.  In the cases I'm thinking of, that means gratuitous repetition
>> of code.  In my book, that's a hack too.
>
> Uh, that's what *functions* are for.

All else being equal, given the choice between a variable or a
function, I'd use the variable any day.

Greg
--
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers