Hi Sergei,

There's a lot to say on that topic, but I'm trying to catch up on my
backlog quickly -- plus, a lot has been said earlier on the list,
hopefully the people involved at the time might be able to help as
well.

2011/9/17 Sergei Sokolov <[email protected]>:
> I suppose this is related to a conflict of times. Maybe {6h0} is considered
> equal both to 6am and 6pm?

No, 6h and 18h are different and can't be considered equal. There must
be another explanation.

> Also, what would be a smart way of writing the expression in one line?
> Something like
> default = fallback(track_sensitive = false, [ switch ([({18h-20h} or
> {06h-08h} and {0m0s}, news)]), default])

That's the right question. Here you were trying to combine ()->bool
(functions returning a boolean) using "or", which is not well typed.
Instead you must combine the booleans directly, inside the function: {
18h-20h or 06h-8h and ... }.

HTH,
-- 
David

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to