Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C/C++ is cryptic

Name: Anonymous 2011-08-09 1:16

What does the following C/C++ construction do?

(A->*B)(C,D)[E]

Name: Anonymous 2011-08-09 9:41

>>7
Wrong. B is pointer to struct-field. A->*B dereferences it with object A. Of course it's all static.



Orthogonality and SETQ

You may wonder, what Q part of SETQ stands for.
Once there was just SET, which was first-class.
SET was othogonal, meaning it treated both operands by their values.
SET allowed stuff like:
  set 'A 'B
  set A 123
  B ; evals to 123

But SET was just too powerful and depended on implementation details. Like environment being just dynamic ASSOC-list. And today's environment requires SET to provide address, instead of symbol.

So born ugly and non-orthogonal SETQ, which tries to emulate old SET.

Similar situation with C/C++ class variables, as there is no way to relative-pointer to member.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List