Strict aliasing
Në shqip përdoret i njëjti emër.
ShpjegimiSQ
Rregulli i „strict aliasing“ thotë që s'mund ta lexosh të njëjtën memorie përmes pointer-ëve të tipeve të ndryshme (p.sh. float* dhe int*). Kompajleri optimizon duke e supozuar këtë — për ta bërë sigurt, përdor memcpy() ose union.
EnglishEN
The “strict aliasing” rule says you can't read the same memory through pointers of different types (e.g. float* and int*). The compiler optimises assuming this — to do it safely, use memcpy() or a union.
Si ta mendosh
Si t'i lexosh të njëjtat nota si edhe si çmime — kompajleri s'e pret dhe ngatërrohet.
Lexoje në anglisht
Like reading the same marks as prices too — the compiler doesn't expect it and gets confused.