#!/bin/sh
echo Hello World!
2011. szept. 24.
Common Lisp Hello World!
Suppose a function foo writes to standard output:
(defun foo () (format t "Hello, world"))
To capture its output in a character string, *standard-output* can be bound to a string stream and called:
(with-output-to-string (*standard-output*) (foo))
(defun foo () (format t "Hello, world"))
To capture its output in a character string, *standard-output* can be bound to a string stream and called:
(with-output-to-string (*standard-output*) (foo))
COMAL Hello World!
PRINT "Hello World!"
Cola Hello World!
string mesg = "Hello world\n";
main() {
print(mesg);
}
Labels:
CLR,
Cola,
Hello World,
Microsoft .NET,
Parrot virtual machine
Corba Hello World!
class Hello
def main
print 'Hello, World'
Labels:
Corba,
dynamic,
Hello World,
inferred,
Microsoft .NET,
Mono,
multi-paradigm,
object-oriented,
static,
strong
CobolScript Hello World!
* "Hello world" program
*
DISPLAY `Content-type: text/html`.
DISPLAY LINEFEED.
DISPLAY ``.
DISPLAY `Hello World `.
DISPLAY `
Labels:
CobolScript,
FreeBSD,
Linux,
Microsoft Windows,
scripting,
SunOS
Clojure Hello World!
(println "Hello, world!")
Labels:
Clojure,
dynamic,
functional,
multi-paradigm,
strong
CLIST Hello World!
PROC 0
WRITE HELLO WORLD!
Clean Hello World!
module hello
Start :: {#Char}
Start = "Hello, world!"
Labels:
Clean,
dynamic,
functional,
static,
strong
Feliratkozás:
Bejegyzések (Atom)