1.1 --- a/micropython/rsvp.py Mon Feb 15 01:35:17 2010 +0100
1.2 +++ b/micropython/rsvp.py Sun Feb 21 22:26:08 2010 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 RSVP instruction and serialisation classes.
1.6
1.7 -Copyright (C) 2007, 2008, 2009 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2007, 2008, 2009, 2010 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -433,7 +433,9 @@
1.13
1.14 class CheckContext(Instruction): "Check to see if the context is valid."
1.15 class CheckClass(Instruction): "Check the current value to determine whether it is a class."
1.16 -class CheckInstance(Instruction): "Check the current value as an instance of a specific class (used with 'self' in an invocation)."
1.17 +class CheckInstance(Instruction): """Check the current value as an instance of a class or its subclasses (used with 'self' in an
1.18 + invocation)."""
1.19 +class CheckType(Instruction): "Check the current value as an instance of a specific class only."
1.20
1.21 # Access to frames upon invocation.
1.22
1.23 @@ -499,7 +501,7 @@
1.24 TestIdentity, TestIdentityAddress, CheckInstance, # as one of the operands
1.25 CheckException, CheckFrame, FillDefaults,
1.26 MakeInstance,
1.27 - CheckContext, CheckClass,
1.28 + CheckContext, CheckClass, CheckType,
1.29 LoadContext # as the object providing the result
1.30 )
1.31