Add tags

Add tags to the following comment

Erlangでは実行時にコマンドラインから実行する関数を指定できます。 ここではprogramモジュールのmain関数を実行し、引数a b c dを渡しています。

erl -noshell -s program main a b c d -s init  stop

関数側はこれらの引数を文字列のリストとして受け取ります。

1
2
3
4
-module(program).
-export([main/1]).

main(Arg) -> io:format("~s ~s ~s ~s ~n", Arg).

Add tags

The input will be splited to tags with space.

Index

Feed

Other

Link

Pathtraq

loading...