Public bug reported:

In XQuery 3.0, it is possible to make forward references to global
variables, like in:

declare variable $x := 3 + $b;
declare variable $b := 4;
$x

Such forward references can cause circular dependencies like in:

declare variable $x := 3 + $b;
declare variable $b := $x;
$x

This needs to be detected and the error XQST0054 thrown. Currently,
Zorba throws XPST0008

** Affects: zorba
     Importance: Undecided
         Status: New

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

Title:
  cyclic dependency of declared variables not detected correctly

Status in Zorba - The XQuery Processor:
  New

Bug description:
  In XQuery 3.0, it is possible to make forward references to global
  variables, like in:

  declare variable $x := 3 + $b;
  declare variable $b := 4;
  $x

  Such forward references can cause circular dependencies like in:

  declare variable $x := 3 + $b;
  declare variable $b := $x;
  $x

  This needs to be detected and the error XQST0054 thrown. Currently,
  Zorba throws XPST0008

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/900688/+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