[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re: Assignment no, dynamic scoping si (was: Wishes

Subject: Re: Re: Assignment no, dynamic scoping si (was: Wishes for XSL revisions ...
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Mon, 31 Dec 2001 22:20:14 -0800 (PST)
assignment sale nj
terje at in-progress dot com (Terje Norderhaug) wrote:

> >
> >It is obvious that any function with implicit parameters cannot be used as a
first
> >class object (e.g. passed as parameter to other functions, or returned as their
> >result). Such functions will be difficult to combine with other functions and
> >generally to reuse. 
> 
> I suspect you are mistaken. Using function with implicit parameters as a first 
> class objects  works fine in Common LISP, where implicit parameters will be 
> captured in a closure that has the same extent as the function object.

No, I'm not mistaken. Read the article at:

http://citeseer.nj.nec.com/cache/papers/cs/11502/http:zSzzSzwww.cse.ogi.eduzSz~mbszSzpubzSzimplicit.pdf/lewis00implicit.pdf

In section 6. at the end of the left column on page 10 the authors say:

"Implicit parameters provide the same functionality as dynamic scoping in Lisp,
except that implicitly parameterized functions are not first-class, and thus can't
be passed as arguments to functions... Thus, we would argue that implicit parameters
give you the best of dynamic scoping, while avoiding its worst pitfalls."

Cheers,
Dimitre Novatchev.

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.