2013/2/9 Bill Burton <[email protected]>: > Hello, Hi Bill!
> On Mon, Feb 4, 2013 at 4:49 PM, Romain Beauxis <[email protected]> wrote: >> >> Hi Azat! >> > ... >> >> Instead, you just need to change the scope of your function as follows: >> >> def stop_after_current() = >> raw_output = get_process_lines("./stop_after_current.py") >> stop = list.hd(raw_output) >> if stop == "true" then >> false >> else >> true >> end >> end >> > > Familiar with Ruby but not Ocaml. Can the above be simplified to: > > def stop_after_current() = > raw_output = get_process_lines("./stop_after_current.py") > list.hd(raw_output) != "true" > end Yup, correct! > def stop_after_current() = > raw_output = get_process_lines("./stop_after_current.py") > not list.hd(raw_output) == "true" > end Yup, expect that you need parenthesis: not (x == y) 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
