This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
Generated
+14
@@ -0,0 +1,14 @@
|
||||
struct FileHandle(Movable):
|
||||
var fd: Int
|
||||
|
||||
def __init__(out self, fd: Int):
|
||||
self.fd = fd
|
||||
|
||||
|
||||
def take(var h: FileHandle) -> Int:
|
||||
return h.fd
|
||||
|
||||
|
||||
def main():
|
||||
var h = FileHandle(3)
|
||||
print("fd:", take(h))
|
||||
Reference in new issue
Block a user