Re: [Newbies] Re: A do with ONLY index? (plus,. a style question)
On Thu, 08 Feb 2007 22:58:32 -0800, Klaus D. Witzel [EMAIL PROTECTED] wrote: Sure. Evaluate Object halt; new with doIt and then in the debugger, in the DoIt method line push the buttons Through then Into. Aha. Huh. Why doesn't this: ^ self basicNew initialize cause a DNU? Object doesn't have an initialize method. But yes we care :) The default initializer is Object#initialize, an empty method with is executed at primitive speed (it just returns self). Before that, #basicNew (the primitive) has already initialized the new instance with all nil's (or zeros, depending on the class' format spec). From the ~ 2887 classes in my Squeak-dev image, only some 928 implement initialize (even less when subtracting all the class side implementors). So yes, it's quite common behavior to let the user set something actually useful. I wasn't clear. I'm accustomed to creating reasonable defaults for instances. In a lot of cases, this has struck me as dumb, since there are no reasonable defaults. I thought I saw the same thing going on in Squeak but that doesn't seem to be the case. ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Re: Re: A do with ONLY index? (plus,. a style question)
Hi Blake, on Fri, 09 Feb 2007 09:15:43 +0100, you wrote: On Thu, 08 Feb 2007 22:58:32 -0800, Klaus D. Witzel wrote: Sure. Evaluate Object halt; new with doIt and then in the debugger, in the DoIt method line push the buttons Through then Into. Aha. Huh. Why doesn't this: ^ self basicNew initialize cause a DNU? Object doesn't have an initialize method. Really ? :) It is inherited from ProtoObject ;-) /Klaus ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Re: Another newbie Morphic question
mike clemow a écrit : Now I can create a new DuckMorph. Will Squeak support PNG transparency? I guess I could find that out myself. :) Yes, transparency and alpha-transparency as well. Just be sure to select the 32bit depth for display mode in the WorldAppearance menu. Hilaire ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Ralph Johnson video lectures on Smalltalk
I've just found a link to a set of videos and lecture notes from Ralph Johnson's lectures on Smalltalk (based on VisualWorks I believe): http://st-www.cs.uiuc.edu/users/johnson/cs497/notes98/online-course.html The lecture notes are accessible, but the video links seem to be dead. Does anyone know if they are still accessible anywhere? ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
RE: [Newbies] Ralph Johnson video lectures on Smalltalk
I've just found a link to a set of videos and lecture notes from Ralph Johnson's lectures on Smalltalk (based on VisualWorks I believe): http://st-www.cs.uiuc.edu/users/johnson/cs497/notes98/online-c ourse.html The lecture notes are accessible, but the video links seem to be dead. Does anyone know if they are still accessible anywhere? I'm pretty sure Ralph teaches in Squeak, not Visual Works. I recall watching his video lectures last year as well, all were in Squeak. Ramon Leon http://onsmalltalk.com ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners