... I don't understand this. I didn't understand it when I read your sources either. In Self, an object's parent(s) is/are the same parent(s) that the...
... A poor choice of words on my part. By that I just meant a key to value mapping. A mapping of a symbol in the source code, say a local variable, to some...
... It doesn't have to be, but that's the convention I use. ... Blocks don't maintain state between calls. Closures do. Cheers, Steve OSX freeware and...
... It's a concept, not something you can take as a convention. If you take copy-on-write semantics, then it makes sense, or embedding-based prototypes, but...
... I don't see why not. If you didn't inherit from them, how would you see "class" variables? ... Paul Graham's adder example of a closure in LISP does this. ...
... Um, by putting them in the shared parents, the traits objects? Of course most things used as "class variables" are really just package-specific variables,...
... This is only one of many possible implementations of a prototype inheriting language, and one which borrows terminology and strategy from Self. IMHO,...
... Traits objects were only an example of what could be a parent object. In this case, even you are objecting to presentation and not the concept itself. ... ...
As I understand it, the embedding based model described by Cardelli implements the inheritance of shared parts by using explicit aliasing of slots to other...
yes, but the compiler can determine this and choose the appropriate implementation. The user should not have to bother with which is which. ... -- ... ...
... I'm not sure what do you mean by the below. I guess you are applying some very specific properties of some language (maybe Self? I don't know it enough to...
... We're getting all turned around here -- my point was not to claim that a parent link was the canonical way of handling dispatch in prototype inheriting...
... It is a closure. It references the variable 'value' from the environment. There is only one way to interpret the above. ... [...] It's not a question...
... I'm not sure I understand what do you mean by blue print and living in the context of programming languages. Is blue print making a program from a text...
... I would so want to disagree with this, but so far I am forced to at least partly... in my process of developing my system I quite often currupt the image, ...
... Closures don't maintain state. Variables maintain state and closures can reference variables. I know what closures are but I don't know if you mean the...
... Are these blocks Smalltalk-like blocks and the closures lisp-like closures? I was getting the feeling that they are the same thing. Is it possible to...
... We need to get rid of the concept of "idiots" and "languages for smart people". Most of these kinds of language arguments are based on psychology and...
... This is the *definition* of a closure. A closure is "closed over" its environment. Any kind of a procedure that does not close over its environment is by...
... More abstractly, how about: A type is a theorem about some aspect of a program's behavior. Static typing enforces some aspects of these theorems before ...
... Now I see why this subject gets people frustrated. It seems that none of these terms is clearly defined. Each community seems to use them in different...
... A closure is the same concept in any language. It's simply spoken of in slightly different ways. I don't refer to them as "having state" really, especially...
There does seem to be confusion between blocks and closures. ... A block (in Smalltalk) is simply an anonymous procedure, e.g. syntactic sugar for a lambda...
... Ok, I see what you mean. I view it as an implementation detail - it's still the same concept which may sometimes be implemented slightly differently. Both...
On Tuesday, December 3, 2002, at 12:12 AM, Marcin 'Qrczak' Kowalczyk ... Yes if you restrict your definition to less than full closures, then you wind up with...
... Indeed, and I don't advocate having downward closures in a language. ... Isn't it easier to attach individual objects to closures instead of activation...
On Tuesday, December 3, 2002, at 12:48 PM, Marcin 'Qrczak' Kowalczyk ... Yes. You then have to implement two ways to access local variables in your virtual...