I am afraid there is simple representation that could simply be used; and talking about comparisons, it’s not that easy to say if a function is equal to another, because we’d first need to define what equality is supposed to be. Maybe it will be better to follow the idea of extending fn:deep-equal, as we did a while ago.
On Wed, Jan 27, 2016 at 12:32 PM, Rob Stapper r.stapper@lijbrandt.nl wrote:
Hi Christian,
I mean the binary representation of the value of a variable. At the moment, for comparing my user defined datatypes, which are functional data structures, I convert them to a strings and compare those. It works but it could do better. Being able comparing the binary images of values, which can be functions, would be a better solution. In that case the binary image of a value is its unique signature that can be compared. Hence my question.
So I guess I refer to the reference (value) of a variable.
Rob
-----Oorspronkelijk bericht----- Van: Christian Grün [mailto:christian.gruen@gmail.com] Verzonden: woensdag 27 januari 2016 11:51 Aan: Rob Stapper CC: BaseX Onderwerp: Re: [basex-talk] bitmaps/binaries of variables
Hi Rob,
Is it somehow possible to get the bitmap/binary of a $variable or a bitmap/binary-overlay of a $variable in BaseX?
What do you mean by the "bitmap/binary of a $variable"? Talking about $variable, do you refer to the declaration of a variable or its references (see e.g. [1,2])?
Christian
[1] https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/ba... [2] https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/ba...