Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!rutgers!att!cbnewsc!lgm From: lgm@cbnewsc.ATT.COM (lawrence.g.mayka) Newsgroups: comp.lang.smalltalk Subject: Re: Smalltalk syntax question/quibble Message-ID: <14232@cbnewsc.ATT.COM> Date: 8 Mar 90 14:56:49 GMT References: <25F52B91.185F@marob.masa.com> Reply-To: lgm@cbnewsc.ATT.COM (lawrence.g.mayka,ihp,) Organization: AT&T Bell Laboratories Lines: 24 In article <25F52B91.185F@marob.masa.com> cowan@marob.masa.com (John Cowan) writes: >The compiler, not just the run-time, must know in advance when it's dealing >with a method and when with a block - compare in Common Lisp the different >treatment given by most compilers to DEFUN vs. LAMBDA. Your Common Lisp example is a bit confusing. Perhaps you're referring to the difference between '(LAMBDA ...) which creates a list that *can* be compiled or interpreted as a function (with a null lexical environment), versus #'(LAMBDA ...) which returns a closure (which may include variables from the lexical environment in which it appears). Lawrence G. Mayka AT&T Bell Laboratories lgm@ihlpf.att.com Standard disclaimer.