Yes  😄😄😄.
Might make me try again to port my application to version 11.

I'm still using 10.7

Cheers, Rob.



Verzonden vanaf mijn Galaxy


-------- Oorspronkelijk bericht --------
Van: Christian Grün <christian.gruen@gmail.com>
Datum: 12-08-2024 16:29 (GMT+01:00)
Aan: Rob Stapper <r.stapper@lijbrandt.nl>
Cc: basex-talk@mailman.uni-konstanz.de
Onderwerp: Re: [basex-talk] recursively used variables

Hi Rob, hi all,

We’ve recently added some ancient bugs regarding self dependencies in variable declarations [1,2]. BaseX 11.2 will be out soon.

Best,
Christian




On Thu, Oct 8, 2020 at 2:17 PM Rob Stapper <r.stapper@lijbrandt.nl> wrote:

Hi,

 

The code[1] below and send as attachment generates a error message: “Static variable depends on itself: $Q{http://www.w3.org/2005/xquery-local-functions}test”.

I use these variables to refer to my private functions in my modules so I can easyly refer to them in a inheritance situation.

It’s not a big problem for me but I was wondering if the error-triggering is justified or that it should work.

 

[1]===========================================

declare variable $local:test := local:test#1 ;

declare %private function local:test( $i) { if ( $i > 0)  then $local:test( $i - 1) } ;

 

$local:test( 10)

===========================================

 

Kind regards,

 

Rob Stapper

 

 

Sent from Mail for Windows 10

 


Virus-free. www.avast.com