Jump to content

Program name: Difference between revisions

added Mathematica
(→‎{{header|Common Lisp}}: {{improve|Common Lisp|If this solution is only for CLISP, then why mention #+sbcl, #+clozure, and so on?}})
(added Mathematica)
Line 529:
module(..., package.seeall)
end</lang>
 
=={{header|Mathematica}}==
 
<lang mathematica>#!/usr/bin/env MathKernel -script
 
ScriptName[] = Piecewise[
{
{"Interpreted", Position[$CommandLine, "-script", 1] == {}}
},
$CommandLine[[Position[$CommandLine, "-script", 1][[1,1]] + 1]]
]
 
Program = ScriptName[];
 
Print["Program: " <> Program]</lang>
 
=={{header|newLISP}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.