Hi Armin,
...I wish I could make sense of what you said, but I'm probably just too tired at the moment. I don't understand what the low-level difference between "int*" and "int&" is.
at low-level, sure. But to first order, I deal with wrappers (even in cling, as it could be an inline function, which, although having external linkage, is usually removed from the code section).
More importantly I don't understand why you would mention cffi/ctypes, given that these two are not about C++ at all.
No, but they actually do have ints. Right now, to get an int*, one would have to do: import array flag = array.array('i', [0]) set_flag(flag) But here's what I'd like code to look like: flag = c_int(0) set_flag(flag) and I can cook up a c_int myself, or re-use a data type representing a c_int, either from ctypes or cffi, that is already available. Re-using seems a better idea. For that to work, though, I need to be able to take the address of the actual payload of the c_int. This is not in the public interface of ctypes on CPython. Best regards, Wim -- wlavrij...@lbl.gov -- +1 (510) 486 6411 -- www.lavrijsen.net _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev