Kaydet (Commit) 8b3c30c0 authored tarafından Guido van Rossum's avatar Guido van Rossum

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

input.
(Jack)
üst 57a0661c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment