Displaying 2 results from an estimated 2 matches for "call_impur".
Did you mean:
call_impure
2017 Apr 08
2
Splitting C/C++ code into pure and side-effecting code
...i.e., code that
doesn't require operating system interactions) and other library that can
have both pure code and side-effecting code.
I was was wondering if it's possible to achieve this by adding something
like __attribute__((annotate("pure"))) and
__attribute__((annotate("call_impure"))) and how much effort will it be to
add such a functionality. Basically, I want "pure" attribute to be sticky,
in the sense that every function that's pure, can only call pure code
unless explicitly marked inside the function to make impure call. For
example, the following cod...
2017 Apr 09
2
Splitting C/C++ code into pure and side-effecting code
...operating system interactions) and other library that can
>> have both pure code and side-effecting code.
>>
>> I was was wondering if it's possible to achieve this by adding something
>> like __attribute__((annotate("pure"))) and __attribute__((annotate("call_impure")))
>> and how much effort will it be to add such a functionality. Basically, I
>> want "pure" attribute to be sticky, in the sense that every function that's
>> pure, can only call pure code unless explicitly marked inside the function
>> to make impure...