My bad. It's not a syntax error but a type error. It'll work fine with
this instead:
on_metadata(fun(m)->log(string_of(m)), radio)
By the way, the type error is reported in a more concise way on 1.0:
At line 1, char 31-44:
this value has type
(string,...)->_
but it should be a subtype of
([_],...)->_
The handler was taking a string (this is what the log function
expects) but on_metadata expects a handler taking a list (of pairs
representing metadata entries).
Cheers,
--
David
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users