In a file "template.h" which is part of the implementation an early version of C++ templates (calling them the "parametrized type facility"), this is found:
// A Lisp style cons cell to help build lists. The parametrized type facility, // should obviate the need for this type-unsafe nonsense.
class cons {
public:
void *car ;
cons *cdr ;
cons (void *pcar, cons *pcdr) { car = pcar ; cdr = pcdr ; } ;
} ;
Could 2024 could be the year when it finally obviates, once and for all?
--
TXR Programming Language:
http://nongnu.org/txr
Cygnal: Cygwin Native Application Library:
http://kylheku.com/cygnal
Mastodon: @
[email protected]
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)