Hi Azat!

2013/2/8 Azat Galiev <[email protected]>:
> Thanks you very much for help! Yes, I have seen the difference. But thare is
> some problem: if function returns not {true} or {false} but true or false to
> a switch, liquidsoap
> generate an error, like:
>
> --------------------------------------
> At line 27, char 73-109:
>   this value has type
>     ((()->_)*_)
>   but it should be a subtype of (the type of the value at line 27, char
> 42-70)
>     (bool*_)
> --------------------------------------
>
> I tried many variants:
> nonstop = switch(track_sensitive=false, [(stop_after_current, nonstop),
> ({true}, blank(id="", duration=20.0))])
> nonstop = switch(track_sensitive=false, [({stop_after_current}, nonstop),
> ({true}, blank(id="", duration=20.0))])
> nonstop = switch(track_sensitive=false, [(stop_after_current(), nonstop),
> ({true}, blank(id="", duration=20.0))])
>
> As I see, there are something wrong in ({true}, blank(id="",
> duration=20.0)). But what? I wasn't do any changes
> in this segment of code.
>
> I'm sorry if I ask stupid questions, but I have very small experience in
> functional programming, so please, don't kick me =)
>
> I hope I have not take too much of your time.

Nope you did not, but I decided to let you experience a bit more..
Have you had any success since that email? :-)

Romain

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to