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

typecast example for result

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