HOFs declared as global variables in the prolog crash Zorba

Bug #1018333 reported by Nicolae Brinza
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
Undecided
Nicolae Brinza

Bug Description

E.g., the query below crashes zorba

xquery version "3.0";

declare namespace op = "http://www.zorba-xquery.com/options/features";
declare namespace f = "http://www.zorba-xquery.com/features";

declare option op:enable "f:hof";

declare variable $func := function($x){translate($x, "abcdefghijklmnopqrstuvwxyz", "nopqrstuvwxyzabcdefghijklm")};

declare function local:scramble($x as function(xs:string) as xs:string, $y as xs:string) as xs:string {
  $x($y)
};

local:scramble($func, "john")

Related branches

Revision history for this message
Nicolae Brinza (nbrinza) wrote :

Fixed in the trunk. Test added as hof-104.xq

Nicolae Brinza (nbrinza)
Changed in zorba:
status: New → Fix Committed
Changed in zorba:
milestone: none → 2.9
Chris Hillery (ceejatec)
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.