3 ms·
I want to offer a bounty for a version that compiles with a contemporary C compiler. There's some magic going on with longs being treated as pointers here.
by golemotron 12y ago
I want to offer a bounty for a version that compiles with a contemporary C compiler. There's some magic going on with longs being treated as pointers here.
- avmich 12y agoThat's a rather normal situation - when your long is 32 bits long and the pointer is also 32 bits long, to satisfy a strict C compiler you just need a cast - which will be a no-op in machine code. This approach was used quite a bit...
- cplease 12y agoStill segfaults with gcc -m32. There's some seriously nonportable, noncompliant type abuse going on in there.
- FullyFunctional 12y agoTry 3+5. Worked for me. I think it's very rudimentary and doesn't handle very much. I agree, I would very much like a ansified very that doesn't crash on unsupported features, but still in this style and in a single file.
- golemotron 12y ago3+5?
- FullyFunctional 12y agoMy point was that very few things work and that was an example. Multi digit numbers will fail. Here's a few examples that doesn't segfault: 3+7 a=3+7 a,a,a b=a,a,a {b b+9 p=2,3,5,7 2{p {p ~8 <~8 #~8 4#3 c=b#2 c,c