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.
The Cscript Style Guide – CScript is the standard C
11–13 of 13 posts
Re: The Cscript Style Guide – CScript is the standard C
#12Given 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.
Re: The Cscript Style Guide – CScript is the standard C
#13This 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?
It's valid K&R since everything defaults to int. The linker will match the symbols sans prototype. That wasn't obsoleted until C23.
TIL, thank you! (How embarrassing haha)