The problem doesn't seem to be related to plan serialization. Instead,
it's a problem with higher-order functions which are still have
experimental status.

** Changed in: zorba
    Milestone: 2.5 => None

** Tags added: hof

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/1002313

Title:
  Plan Serializer test fails

Status in Zorba - The XQuery Processor:
  New

Bug description:
  The following queries:
  declare namespace an = "http://www.zorba-xquery.com/annotations";;
  declare namespace o = "http://www.zorba-xquery.com/options/features";;
  declare option o:enable "hof";

  declare %private variable $handlers := ();

  declare %an:sequential function local:add($handler)
  {
    $handlers := ($handlers, $handler);
  };

  declare function local:emit()
  {
    for $h in $handlers
    return $h()
  }; 
  declare %an:sequential function local:test()
  {
    local:add(local:handle#1);
    local:emit()
  };

  declare function local:handle($message)
  {
    trace($message, "message")
  };

  local:test()

  
  Fails with the plan serializer (segfault)

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1002313/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to