node naming conventions

Håkan Stenholm hakan.stenholm@REDACTED
Fri Feb 7 06:35:10 CET 2003


On fredag, feb 7, 2003, at 05:51 Europe/Stockholm, Chris Wright wrote:

> a machine here is icu-21
>
> what's the right way to name a node on that machine
> (from joe's tutorial:
> 	db_nodes() ->
> 		[one@REDACTED, two@REDACTED].

I guess they are atoms, so use single quotas:

['one@REDACTED', 'two@REDACTED']

othervise it will presumably be interpreted as

['one@REDACTED' - 21, 'two@REDACTED' - 21]

by the parser.

>
> gives an arithmetic error as it tries to perform icu - 21!)
>
> thanks!
>
> Chris
>




More information about the erlang-questions mailing list