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))
A következő címkéjű bejegyzések mutatása: object-oriented. Összes bejegyzés megjelenítése
A következő címkéjű bejegyzések mutatása: object-oriented. Összes bejegyzés megjelenítése
2011. szept. 24.
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
2011. jún. 27.
Hello World Caml!
print_endline "Hello world!";;
Labels:
Caml,
functional,
Hello World,
imperative,
multi-paradigm,
object-oriented
Feliratkozás:
Bejegyzések (Atom)