UndefinedVariable.st
changeset 20 f8dd8ba75205
parent 3 b63b8a6b71fb
child 33 8985ec2f9e82
equal deleted inserted replaced
19:84a1ddf215a5 20:f8dd8ba75205
    16        poolDictionaries:''
    16        poolDictionaries:''
    17        category:'System-Compiler-Support'
    17        category:'System-Compiler-Support'
    18 !
    18 !
    19 
    19 
    20 UndefinedVariable comment:'
    20 UndefinedVariable comment:'
    21 
       
    22 COPYRIGHT (c) 1993 by Claus Gittinger
    21 COPYRIGHT (c) 1993 by Claus Gittinger
    23               All Rights Reserved
    22               All Rights Reserved
       
    23 '!
    24 
    24 
    25 This class exists solely for the error message when accessing undefined
    25 !UndefinedVariable class methodsFor:'documentation'!
    26 variables - instead of returning nil,  the compiler returns an instance
       
    27 of this class,  which will not understand ANY message.
       
    28 The error message will then be "UndefinedVariable ..." instead of
       
    29 "UndefineObject ..."
       
    30 
    26 
    31 $Header: /cvs/stx/stx/libcomp/UndefinedVariable.st,v 1.2 1993-10-13 00:26:22 claus Exp $
    27 copyright
    32 '!
    28 "
       
    29  COPYRIGHT (c) 1993 by Claus Gittinger
       
    30               All Rights Reserved
       
    31 
       
    32  This software is furnished under a license and may be used
       
    33  only in accordance with the terms of that license and with the
       
    34  inclusion of the above copyright notice.   This software may not
       
    35  be provided or otherwise made available to, or used by, any
       
    36  other person.  No title to or ownership of the software is
       
    37  hereby transferred.
       
    38 "
       
    39 !
       
    40 
       
    41 version
       
    42 "
       
    43 $Header: /cvs/stx/stx/libcomp/UndefinedVariable.st,v 1.3 1994-06-02 20:26:25 claus Exp $
       
    44 "
       
    45 !
       
    46 
       
    47 documentation
       
    48 "
       
    49     node for parse-trees, representing undefined variables
       
    50 
       
    51     This class exists solely for the error message when accessing undefined
       
    52     variables - instead of returning nil,  the compiler returns an instance
       
    53     of this class,  which will not understand ANY message.
       
    54     The error message will then be 'UndefinedVariable ...' 
       
    55     instead of 'UndefineObject ...', which is somewhat more informative.
       
    56 "
       
    57 ! !
    33 
    58 
    34 !UndefinedVariable class methodsFor:'instance creation'!
    59 !UndefinedVariable class methodsFor:'instance creation'!
    35 
    60 
    36 name:aString
    61 name:aString
    37     ^ (self basicNew) setName:aString
    62     ^ (self basicNew) setName:aString