40
5
Produce only the name of a programming language using only the facilities of the language itself. The name of the language can only be invoked indirectly, i.e., from non custom environment variables, built-in functions or methods or the interpreter/compiler of the language. Output should be the name of the language only.
One example would be:
$ awk --v | awk 'NR<2 { print $2}' # GNU Awk 3.1.8
Awk
The answer I select will be the one with the most up votes. In case of a tie, the shortest golfed version (separate or the only given answer), will be the tie breaker.
1so using Java reflection API is not OK? – Ming-Tang – 2011-02-21T01:15:10.837
I didn't think of that, but that's okay too. – Ty Auvil – 2011-02-21T12:20:44.517
@George: Huh? Is that now a code-golf? Why? It wasn't before ... – Joey – 2011-02-21T19:03:23.253
@Joey: No it wasn't before, but it seemed like a code golf question, so I edited it and someone approved the edit. – Nathan Osman – 2011-02-21T19:35:24.020
@Joey: Code Golf is the tie breaker. I didn't put that TAG on originally, but George suggested it and I agreed. – Ty Auvil – 2011-02-21T23:11:34.623
As of now, Anon. has 6 votes, but Eelvex, the one you picked, has 5. – Mateen Ulhaq – 2011-03-10T04:44:39.870
@George Edison: Sorry, I took out the [code-golf] tag you added, as it's not a code golf question. (See the edit comment for rationale.) – Chris Jester-Young – 2011-03-11T08:59:34.110
print(reverse("emaNegaugnaL"))
C, J, and other one'rs excluded :( – Thomas Eding – 2011-07-19T00:31:19.270There's still no solution in Haskell... – Joey Adams – 2011-07-19T00:56:58.347
@Joey: Remedied. – Thomas Eding – 2011-07-22T20:30:58.100
should'nt this be community wiki? – kinokijuf – 2011-12-25T11:28:28.433