Back: DateTime-time zones Up: Base classes Forward: DeferredVariableBinding class-basic   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.58 DeferredVariableBinding

Defined in namespace Smalltalk
Superclass: LookupKey
Category: Language-Data types
I represent a binding to a variable that is not tied to a particular dictionary until the first access. Then, lookup rules for global variables in the scope of a given class are used.

1.58.1 DeferredVariableBinding class: basic  (class)
1.58.2 DeferredVariableBinding: basic  (instance)
1.58.3 DeferredVariableBinding: storing  (instance)


1.58.1 DeferredVariableBinding class: basic

key: aSymbol class: aClass defaultDictionary: aDictionary
Answer a binding that will look up aSymbol as a variable in aClass's environment at first access. See #resolveBinding's comment for aDictionary's meaning.

path: anArray class: aClass defaultDictionary: aDictionary
As with #key:class:defaultDictionary:, but accepting an array of symbols, representing a namespace path, instead.


1.58.2 DeferredVariableBinding: basic

path
Answer the path followed after resolving the first key.

value
Answer a new instance of the receiver with the given key and value

value: anObject
Answer a new instance of the receiver with the given key and value


1.58.3 DeferredVariableBinding: storing

printOn: aStream
Put on aStream some Smalltalk code compiling to the receiver

storeOn: aStream
Put on aStream some Smalltalk code compiling to the receiver



Back: DeferredVariableBinding-basic Up: DeferredVariableBinding Forward: Delay   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on May, 22 2008 using texi2html