0
|
1 |
"
|
4
|
2 |
COPYRIGHT (c) 1989 by Claus Gittinger
|
0
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
|
|
13 |
Object subclass:#Variable
|
|
14 |
instanceVariableNames:'value name used'
|
|
15 |
classVariableNames: ''
|
|
16 |
poolDictionaries:''
|
|
17 |
category:'System-Compiler-Support'
|
|
18 |
!
|
|
19 |
|
|
20 |
Variable comment:'
|
|
21 |
|
4
|
22 |
COPYRIGHT (c) 1989 by Claus Gittinger
|
0
|
23 |
All Rights Reserved
|
|
24 |
|
4
|
25 |
$Header: /cvs/stx/stx/libcomp/Variable.st,v 1.3 1993-10-13 02:41:56 claus Exp $
|
0
|
26 |
'!
|
|
27 |
|
|
28 |
!Variable class methodsFor:'instance creation'!
|
|
29 |
|
|
30 |
name:name
|
|
31 |
^ (self new) name:name
|
|
32 |
! !
|
|
33 |
|
|
34 |
!Variable methodsFor:'accessing'!
|
|
35 |
|
|
36 |
value:v
|
|
37 |
value := v
|
|
38 |
!
|
|
39 |
|
|
40 |
name:aString
|
|
41 |
name := aString
|
|
42 |
!
|
|
43 |
|
|
44 |
name
|
|
45 |
^ name
|
|
46 |
!
|
|
47 |
|
|
48 |
value
|
|
49 |
^ value
|
|
50 |
!
|
|
51 |
|
|
52 |
used:aBoolean
|
|
53 |
used := aBoolean
|
|
54 |
!
|
|
55 |
|
|
56 |
used
|
|
57 |
^ used
|
|
58 |
! !
|