[
http://dev.sourcefabric.org/browse/LS-593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19050#action_19050
]
David Baelde commented on LS-593:
---------------------------------
I think it would be a bad idea to have a different behavior when -i is passed.
This would be very surprising to use: the same script should cause the same
error with and without -i in my opinion.
In any case, -i never printed the type of 5 unless it is assigned to a
variable, because it only prints the type of variables.
I believe that the best way to do that kind of tests is to run liquidsoap
--interactive, and type in the expression 5, followed by ;;
> Allow -i on scripts not returning sources
> -----------------------------------------
>
> Key: LS-593
> URL: http://dev.sourcefabric.org/browse/LS-593
> Project: Liquidsoap
> Issue Type: Bug
> Reporter: Samuel Mimram
> Assignee: David Baelde
>
> In order to check the type of 5 (or something more complicated...) the
> natural thing is to do the following
> $ ./liquidsoap -i '5'
> At line 1, char 1: The result of evaluating this term will be dropped, but
> it does not have type unit or active_source. Use ignore(...) if you meant
> to drop it, otherwise this is a sign that your script does not do
> what you intend.
> Could -i modify the behavior so that we can check the type of script whose
> result is not a source? Of course I can use liquidsoap -i 'x = 5' but it took
> me 5 minutes with internet to figure this out...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://dev.sourcefabric.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook
in minutes. BlackBerry App World™ now supports Android™ Apps
for the BlackBerry® PlayBook™. Discover just how easy and simple
it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________
Savonet-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-devl