]> granicus.if.org Git - python/commitdiff
class ByAddressType, a simple Type but passed by address even on
authorGuido van Rossum <guido@python.org>
Tue, 28 Apr 1998 16:04:12 +0000 (16:04 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 28 Apr 1998 16:04:12 +0000 (16:04 +0000)
input.
(Jack)

Tools/bgen/bgen/bgenType.py

index ba9a53e4304872046f04e192468323f205d5f422..b63a06f98f02a855193ffcfcbfd7151340cebfe2 100644 (file)
@@ -100,6 +100,13 @@ class Type:
                """
                pass
 
+class ByAddressType(Type):
+       "Simple type that is also passed by address for input"
+
+       def passInput(self, name):
+               return "&%s" % name
+
+
 
 # Sometimes it's useful to define a type that's only usable as input or output parameter