Re: Reference and First-Class Function

"Michael Kay" <[email protected]> Sun, 21 Dec 2008 17:00:33 -0000
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <CEDE8AFFCE9B41C0910983FF99BD6BE2@Sealion>
> 
> Whenever an argument to a function is a sequence, what is 
> actually passed to the function is a reference to that 
> sequence (the sequence is not copied).

How would you be able to detect the difference?
> 
> References, either to nodes or to sequences, do exist in XSLT 
> and everybody uses them.
> 
This is a bit like saying that mutable storage exists in XSLT because all
known implementations use it internally. It's confusing what's present in
the language semantics with what might be present in the internals of an
implementation.

Michael Kay
http://www.saxonica.com/