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

CExpr

Name: Anonymous 2017-06-22 5:26

Name: Anonymous 2017-06-22 5:40

which on large projects can easily reach several hundred megabytes of data
Pfft you wouldn't believe what variadic templates with auto variables do.
We left operator overloading mostly in the 90’s
Operator overloading is actually the only Sepples feature i like.
It makes a code bit cryptic, but it looks much nicer than typing function names into expression.
GCC has __attribute__((cleanup)) which is a scope destructor, replacing all the OOP i'll ever need.
http://echorand.me/site/notes/articles/c_cleanup/cleanup_attribute_c.html

Name: Anonymous 2017-06-22 6:55

so, has this project ever become anything more than a prototype? it looks pretty useful

Name: Anonymous 2017-06-22 16:58

>>3
I don't think projects like this will ever become more than prototypes. Whether it is a full language or just a small processor on top of C doesn't really matter for development because you still have to learn a completely new tool and at that point, you'd be better off if you just switched the language completely so you aren't held back by the C compatibility.

Name: Anonymous 2017-06-24 11:18

>>2,4
I think the point was to rely on C compilers and other C code. He was probably thinking about platforms with architectures that are not supported by GCC, such as videogame consoles, when he wrote this. A simple preprocessor on top of C like this is a few orders of magnitude easier to implement and maintain than a compiler with backends that change with each iteration of new consoles.

Name: Anonymous 2017-06-24 13:19

>(defun my-function ((a int) (b int) (return int))
(return (+ a b))
#define defun(funcname,args,body) funcname args {body;}
defun(int adder,(int a,int b),return a+b)
#include <stdio.h>
int main(){
printf("%d",adder(adder(2,1),adder(3,6)) );}
http://codepad.org/rRfNkbqF

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