5 ms·
> Oddly I find pointers intuitive and easy in Pascal and assembler Sure, sixy seven lines of assembly handily beats arcane crap like: obj->ops.tbl[BLAH]->f
by kazinator 10y ago
> Oddly I find pointers intuitive and easy in Pascal and assembler
Sure, sixy seven lines of assembly handily beats arcane crap like:
obj->ops.tbl[BLAH]->func(obj, &obj->x, arg);
Want to take an integer in a register, then add another register's integer multiplied by 8 or 4, and then a fixed offset?
Just use LEA (load effective address) and don't comment anything.
Let the reader figure out that no pointers are involved.
- emmelaich 10y agoI guess you're being sarcastic but I honestly can't tell. [edit: 99% sure is sarcastic]