Does umka lang supports reentrancy? #603
-
|
Does umka lang supports reentrancy? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
|
Beta Was this translation helpful? Give feedback.
-
|
Does umka lang supports reentrancy? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
@kinjalkishor
Reentrancy. It depends. You cannot call Umka functions from different OS threads. However, you can do it staying on the same thread:
https://github.com/vtereshkov/umka-lang/blob/master/tests/lib/lib.um#L6
https://github.com/vtereshkov/umka-lang/blob/master/tests/lib/lib.c#L85
Pointers. I would say it's the opposite: all other scripting languages have pointers for representing any structures, while almost none of them have structures as values. Their pointers are not called pointers, just because you never have to dereference them explicitly.
Umka was designed to support any C structures natively. C distinguishes between
struct {struct S data;}andstruct {struct S *data;},…