Release 5.  Copyright ©1994-1998 by TipTop Software, Inc.  All Rights Reserved.





TTInterpValueProtocol




Declared In: <ObjCore/TTInterpValueProtocol.h>




Protocol Description

All language-specific value type(s) conform to this protocol.  The protocol specifies the API for converting language-specific value type to generic object (id) type, and vice-versa.  See also TTInterpProtocol.




Method Types

Value to id conversion objectValueInInterp:flags:
Id to value conversion initForObject:inInterp:flags:
Value description representationInInterp:




Instance Methods

initForObject:inInterp:flags:
  (id <TTInterpValueProtocol>)initForObject:(id)obj
inInterp:(id /*<TTInterpProtocol>*/)interp
flags:(unsigned)f

Converts object obj to the appropriate language-specific value for interpreter interp.




objectValueInInterp:flags:

  (id)objectValueInInterp:(id /*<TTInterpProtocol>*/)interp
flags:(unsigned)f

Converts the value to an object.




representationInInterp:

  (NSString*)representationInInterp:(id /*<TTInterpProtocol>*/)interp

Returns a string description of the value.  This method is invoked by TTInteractor when a value, resulting from an expression evaluations, is to be echoed back to the user.




###