Just a few fixes...

On Sun, Jun 7, 2009 at 9:32 PM, Romain Beauxis<[email protected]> wrote:
> Yes, the liquidsoap language is a functional language. Hence, it is not
> possible to change the value of a variable. This is done by redefining a new
> variable.

Defining a new variable has often the desired effect, but let's make
it clear: it is not in general a way to change a variable.

> For that reason,
>  x = y
> is a boolean, true if x = y and false otherwise.

No, x==y would be a boolean, result of comparing the two expressions.
In liquidsoap, x = y is always the declaration of a new variable named
x with value y, masking previous declarations of x until the end of
its scope.

> In your precise case, you can do even better, and avoid string.ref.

Changing things can often be done using server commands as was indeed
the case here.

-- 
David

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to