Fork: Difference between revisions

Content added Content deleted
(Nimrod -> Nim)
(Add LFE version of fork based on the Erlang version)
Line 576: Line 576:
Aha, I am still in the original thread
Aha, I am still in the original thread
</pre>
</pre>

=={{header|LFE}}==
<lang lisp>
;;;
;;; This is a straight port from the Erlang version.
;;;
;;; You can run this in the LFE REPL by slurping the file:
;;;
;;; > (slurp "fork.lfe")
;;; > (start)
;;;
(defmodule fork
(export (start 0)))

(defun start ()
(spawn (lambda () (child))))

(defun child ()
(lfe_io:format "This is the new process~n" '()))
</lang>


=={{header|Lua}}==
=={{header|Lua}}==