[erlang-questions] Allowed node names

Edwin Fine erlang-questions_efine@REDACTED
Tue Jun 3 16:58:50 CEST 2008


The "steenking comment" is right above the code of is_node_name()  :)
Ed

On Tue, Jun 3, 2008 at 10:53 AM, Vlad Dumitrescu <vladdu55@REDACTED> wrote:

> Well, I admit I didn't find that, but got to the actual implementation of
> is_node_name(), which is actually reading the code, not some stinking
> comment :-)
>
> /Vlad
>
>
> On Tue, Jun 3, 2008 at 4:51 PM, Edwin Fine <erlang-questions_efine@REDACTED>
> wrote:
>
>> Gosh, Vlad, how can you say it is not documented? I mean, it clearly
>> states in the comments to the Erlang C source code in
>> erts/emulator/beam/dist.c that
>>
>> **
>> ** n must be a valid node name: string of ([a-z][A-Z][0-9]_-)+
>> **
>>
>> It only took me 20 minutes to track this down. Don't you know, Real
>> Programmers Don't Need No Steenking Documentation, They Just Read The Code
>> ;-)
>>
>> *(Disclaimer: In case anyone inadvertently takes this rant literally and
>> gets ticked off, it was written with heavy irony and tongue firmly in
>> cheek).*
>>
>>
>> 2008/6/3 Vlad Dumitrescu <vladdu55@REDACTED>:
>>
>>>  Hi,
>>>
>>> I couldn't find any documentation regarding which node names are allowed,
>>> so I had to trace it down in the emulator code.
>>>
>>> Node names must conform to the following regexp: [a-zA-Z0-9_-]+
>>>
>>> Maybe it should be added to the docs.
>>> regards,
>>> Vlad
>>>
>>> --
>>> .......__o
>>> .......\<,
>>> ....( )/ ( )...
>>> _______________________________________________
>>> erlang-questions mailing list
>>> erlang-questions@REDACTED
>>> http://www.erlang.org/mailman/listinfo/erlang-questions
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080603/79ac0c48/attachment.htm>


More information about the erlang-questions mailing list