Thanks to all, it's working :-)

Jef

On 24 Oct 2008, at 14:54, David Baelde wrote:

> Hi Jean-François,
>
> That question is easy, so I'll answer it. I'll look at your other  
> problem next week, unless other devs find out before.
>
> The solution for you:
> $ src/liquidsoap 'print(string.replace(pattern="_",(fun (s) -> "  
> "),"bla_bla"))'
> bla bla
>
> The error was that the string.replace function takes as parameter  
> not a string, but a function from string to string. From liquidsoap - 
> h string.replace:
>   Type: (~pattern:string, ((string)->string), string)->string
> This allows for example, to replace any character by twice the same:
> $ src/liquidsoap 'print(string.replace(pattern=".",(fun (s) ->  
> s^s),"bla_bla"))'
> bbllaa__bbllaa
>
> Have fun,
> -- 
> David
>
> PS: Hi Romain :) now I'll go read your answer which just arrived...



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to