underscore prefixed variables (was: Re: Noob - Getting Started Infinte Loop?)

Simon Chappell simonpeterchappell@REDACTED
Thu Aug 31 18:40:36 CEST 2006


On 8/31/06, Fredrik Thulin <ft@REDACTED> wrote:
> On Thursday 31 August 2006 03:03, Håkan Stenholm wrote:
> ...
> > Note that _V is still a valid variablename, so the code below is
> > valid:
> >
> >     foo(_V) ->
> >         _V * 2.
> >
> >     a call to foo(42) would yield 84 in this case.

When did that get added to the language? I looked in my copy of
"Concurrent Programming in Erlang, 2ed" and didn't find that. All I
found was that variables must start with an upper-case letter.

Simon

-- 
www.simonpeter.org



More information about the erlang-questions mailing list