hi, I find that (with-slots (a b) this (a)) compiles to a(), rather than this.a(), as I would expected.
Which one is what you expected?
This works like it does in Common Lisp - functions and variables have different namspaces. JavaScript doesn't differentiate the two. So the behavior is 'correct' in that it's like Common Lisp.
Vladimir
On Thu, Aug 25, 2011 at 9:09 AM, Canhua dreameration@gmail.com wrote:
hi, I find that (with-slots (a b) this (a)) compiles to a(), rather than this.a(), as I would expected.
Which one is what you expected?
parenscript-devel mailing list parenscript-devel@common-lisp.net http://lists.common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
so how do you achieve this.a() effect? Like this: (with-slots (a b) this (funcall a))
On Fri, Aug 26, 2011 at 4:54 AM, Vladimir Sedach vsedach@gmail.com wrote:
This works like it does in Common Lisp - functions and variables have different namspaces. JavaScript doesn't differentiate the two. So the behavior is 'correct' in that it's like Common Lisp.
Vladimir
On Thu, Aug 25, 2011 at 9:09 AM, Canhua dreameration@gmail.com wrote:
hi, I find that (with-slots (a b) this (a)) compiles to a(), rather than this.a(), as I would expected.
Which one is what you expected?
parenscript-devel mailing list parenscript-devel@common-lisp.net http://lists.common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
parenscript-devel mailing list parenscript-devel@common-lisp.net http://lists.common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
Exactly
On Thu, Aug 25, 2011 at 8:57 PM, Canhua dreameration@gmail.com wrote:
so how do you achieve this.a() effect? Like this: (with-slots (a b) this (funcall a))
On Fri, Aug 26, 2011 at 4:54 AM, Vladimir Sedach vsedach@gmail.com wrote:
This works like it does in Common Lisp - functions and variables have different namspaces. JavaScript doesn't differentiate the two. So the behavior is 'correct' in that it's like Common Lisp.
Vladimir
On Thu, Aug 25, 2011 at 9:09 AM, Canhua dreameration@gmail.com wrote:
hi, I find that (with-slots (a b) this (a)) compiles to a(), rather than this.a(), as I would expected.
Which one is what you expected?
parenscript-devel mailing list parenscript-devel@common-lisp.net http://lists.common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
parenscript-devel mailing list parenscript-devel@common-lisp.net http://lists.common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
parenscript-devel mailing list parenscript-devel@common-lisp.net http://lists.common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
parenscript-devel@common-lisp.net