Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gpderetta
on March 29, 2019
|
parent
|
context
|
favorite
| on:
Fibers: An Elegant Windows API
Yes, IIRC the trick is to split the pointer I two integers and pass the halves separately.
wongarsu
on March 29, 2019
[–]
Which would imply that you know that sizeof(int) * 2 == sizeof(void*). That's a good assumption for x86-64 architectures but doesn't sound very portable at all.
gpderetta
on March 29, 2019
|
parent
[–]
There are many ways to recover portability.
Shish2k
on March 29, 2019
|
root
|
parent
[–]
POSIX seems like the kind of API that it shouldn't be necessary to "recover" portability from...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: