globals besides relvars?

From: Marshall Spight <mspight_at_dnai.com>
Date: Mon, 28 Jul 2003 03:40:58 GMT
Message-ID: <eX0Va.143552$GL4.37155_at_rwcrnsc53>



There's this idea that global data only goes into relvars, right? So what if you have some function that requires some storage? For example, imagine a function that returns the current timezone. It needs to store this somewhere. Presumably there's a setTimeZone function also. Where does it store the timezone? Is it allowable to have a storage that's bound to a function in the catalog, perhaps? But if this is allowed, isn't it starting to sound like objects? (behavior + state, eh?)

Earlier I was thinking about operator identity. (The + operator has zero as the identity value; multiply has 1.) This seems like it associates with a function as well. But this idea doesn't seem so problematic, because it's just a constant.

Marshall Received on Mon Jul 28 2003 - 05:40:58 CEST

Original text of this message