Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
imadr
on June 1, 2021
|
parent
|
context
|
favorite
| on:
Rotations with quaternions
I'm absolutely not a pro in C, so if it is undefined behaviour I'd be glad to know and fix it, I just found out about the notation and it looks handy
dnautics
on June 1, 2021
[–]
checked myself. My cursory, poor search suggests it's UB in C++, but not in C?
steerablesafe
on June 1, 2021
|
parent
[–]
It is definitely UB in C++ and probably implementation defined in C (and this use is fine all implementations, AFAIK). Some C++ implementations allow this as a conforming language extension.
dnautics
on June 1, 2021
|
root
|
parent
[–]
thanks for clarifying!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: