Commit 92a4c485 authored by Gwenael Samain's avatar Gwenael Samain

typecast example for result

parent 07a67da7
......@@ -34,8 +34,8 @@ cdef cypclass ResultInterface nolock:
pass
int getIntResult(self):
pass
#int __int__(self):
# pass
int __int__(self):
return self.getIntResult()
ctypedef deque[MessageInterface] message_queue_t
......@@ -292,6 +292,7 @@ cpdef test():
print(result_object.getIntResult())
print("Trying to access to res_before: this works")
print(res_before.getIntResult())
print(<int> res_before)
# Fourth pass: just to check we trigger the empty queue message
active_object._active_queue.activate()
......
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