Hello,
i wanted to figure out, why liquidsoap has such behaviour, that seems so
strange:
# Retrieve station_id argv parameter
> CONFIG = ref [];
> CONFIG:= list.append([("STATION_ID", argv(1))], !CONFIG)
> # Works
> print(list.assoc("STATION_ID", !CONFIG))
> # Does not work
> print(!CONFIG["STATION_ID"])
for !CONFIG["STATION_ID"] call, it gives error:
At line 36, char 14:
> this value has type
> ref(_) (infered at line 32, char 10-15)
> but it should be a subtype of
> [_]
Is it because of reference used with CONFIG variable?
--
Kind regards,
Alexander.
------------------------------------------------------------------------------
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