3 ms·
Next you'll be telling me laser pointers have colours and there are several dog breeds named 'pointer'. Pointer dogs are furry.
by pvg 8y ago
Next you'll be telling me laser pointers have colours and there are several dog breeds named 'pointer'. Pointer dogs are furry.
- pjmlp 8y agoI don't need jokes about laser pointers to present languages, some of them much older than C, which have pointers with 1:1 features to C ones. Of course, it kind of hurts the urban myth that C is a special snowflake among systems programming languages, having languages almost 10 years older with such features.
- pvg 8y agoThe original comment was a comparison of pointers in C and PEEKs and POKEs in BASIC. So making up stuff about how assembly has 'pointers' or trying to start some argument about C with a statement nobody made is not really much more directly related to what we're discussing than a comment about the music of the Pointer Sisters.
- pjmlp 8y agoSo back to Basic then, this is Turbo Basic (1987) ' a = *addr a = PEEK (addr%) ' *addr = value POKE addr%, value 'a = addr a = addr 'addr++ INCR addr%, 2 'a = &variable DEF SEG = VARSEG(variable) a = VARPTR(varible) a = VARPTR$(varible) Album, http://www.bitsavers.org/pdf/borland/Borland_Turbo_BASIC_Owners_Handbook_1987.pdf http://www.bitsavers.org/pdf/borland/Borland_Turbo_BASIC_Own... Or to stay with QuickBasic dialects, Freebasic music tunes https://www.freebasic.net/wiki/wikka.php?wakka=TblComparisonC https://www.freebasic.net/wiki/wikka.php?wakka=TblComparison... Which also provides the SIZEOF chord, simplifying the increment operations of memory addresses.