1.1 --- a/micropython/rsvp.py Sun Mar 09 02:46:57 2008 +0100
1.2 +++ b/micropython/rsvp.py Mon Mar 10 00:37:37 2008 +0100
1.3 @@ -54,7 +54,15 @@
1.4 result = position
1.5 else:
1.6 location = self.attr.parent.location
1.7 - result = location + position + 1
1.8 +
1.9 + # NOTE: Unpositioned attributes are handled here.
1.10 +
1.11 + if location is not None and position is not None:
1.12 + result = location + position + 1
1.13 + else:
1.14 + location = self.attr.parent.name
1.15 + position = self.attr.name
1.16 + result = None
1.17 return "%s(%r, %r -> %r)" % (self.__class__.__name__, location, position, result)
1.18
1.19 AR = AddressRelativeInstruction