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

The Nash C Programming Language

Name: Anonymous 2021-04-02 22:06

Name: Anonymous 2021-04-10 15:33

New feature - rewriting the symbols during the AST traversal:
#macro(a) name_@{typeof a}();
...
macro(x);


would call `name_int` if `x` has type int, or `name_int_ptr`.

not exactly C++/Java generics, result is rather similar, while the implementation is completely exposed to the user.

AFAIK, C99 doesn't use the @ character, so it can be used freely. The `$` is a bit more tricky, since both assemblers and C++ use it for different purposes, therefore it have to be passed to the C99 compiler unchanged, as part a symbol.

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