class ByAddressType, a simple Type but passed by address even on

input.
(Jack)
This commit is contained in:
Guido van Rossum 1998-04-28 16:04:12 +00:00
parent 57a0661cb8
commit 8b3c30c0eb
1 changed files with 7 additions and 0 deletions

View 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