Program name: Difference between revisions
Content added Content deleted
(Added BBC BASIC) |
(Add NetRexx implementation) |
||
Line 906: | Line 906: | ||
push 0 |
push 0 |
||
call ExitProcess</lang> |
call ExitProcess</lang> |
||
=={{header|NetRexx}}== |
|||
<lang NetRexx>/* NetRexx */ |
|||
options replace format comments java crossref symbols nobinary |
|||
package org.rosettacode.samples |
|||
say 'Source: ' source |
|||
say 'Program:' System.getProperty('sun.java.command') |
|||
return |
|||
</lang> |
|||
'''Output''' |
|||
Called directly: |
|||
<pre> |
|||
$ java org.rosettacode.samples.RProgramName |
|||
Source: Java method RProgramName.nrx |
|||
Program: org.rosettacode.samples.RProgramName |
|||
</pre> |
|||
When bundled inside a JAR file and referenced as the application entry point via the manifest's <tt>Main-Class</tt> header: |
|||
<pre> |
|||
$ java -jar pn.jar |
|||
Source: Java method RProgramName.nrx |
|||
Program: pn.jar |
|||
</pre> |
|||
=={{header|newLISP}}== |
=={{header|newLISP}}== |