7 comments

[ 4.1 ms ] story [ 25.7 ms ] thread
This is interesting, but I wouldn't say it is valid C. main() doesn't know about greet(auto s) and wouldn't be able to call it in valid C89, right?
To compile CScript to C:

apt install gcc-dev

cat hello.cs > hello.c

gcc hello.c

> 0[str] is valid and asserts dominance.

At this point I came dangerously close to spewing water all over my keyboard. :D

Very high quality shitposting. Approved.
Given that CScript is the name of the "Console Based Script Host" for Windows, that can run JScript (Microsoft's old variant of JavaScript) and VBScript, and supposedly other pluggable scripting languages (I've never seen one in the wild), calling this "Cscript" is not a good idea.
It's a joke language, I doubt it will cause any significant ambiguity ever.