3 ms·
Which languages have pointer arithmetic, longjmp, goto anywhere within a function, address-of operator, memcpy that is equivalent to assignment even for lexical
by kazinator 9y ago
Which languages have pointer arithmetic, longjmp, goto anywhere within a function, address-of operator, memcpy that is equivalent to assignment even for lexical variables, untagged unions, switch with fall-through in absence of explicit break and a textual/token-wise preprocessor?
- pjmlp 9y agoBLISS, Modula-2, NEWP, Mesa,...? Of course, some of those tricks are only allowed in SYSTEM/UNSAFE blocks on these languages.
- kazinator 9y agoThat was in response to the claim that if C has a feature, it "probably exists in every language most programmers are familiar with". "Most programmers" are not familiar with these. (A bit sad in the case of Modula-2).
- pjmlp 9y agoWhich is a sad state of affairs, programming language history should be a required part of curriculum.
- kazinator 9y agoWell, there is a big jump between knowing about historic programming languages and familiarity. I know a few things about SNOBOL, but I couldn't sit down and start coding in it without some ramp-up period.