The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Turtles all the way Down

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Turtles all the way Down Posted: Jan 20, 2007 10:21 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Turtles all the way Down
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

Ramon Leon explains the key thing that makes Smalltalk different than languages like Java, C# (et. al.): Everything is an object, and objects communicate by sending messages:

Constructors, in Smalltalk, are simply a convention; the language has no “new” keyword. In Smalltalk, your classes themselves, are objects, singletons in fact; they are the only instance of their meta class. This might sound weird, so lets look at an example. Say we declare a Person class

 

Object subclass: #Person 
     instanceVariableNames: 'firstName lastName' 
     category: 'OnSmalltalk' 


First, notice that this is simply a method call on the object class (there is no special syntax for creating classes), which itself is an object. This creates two classes in the runtime image, one called “Person” and one called “Person class”. The class “Person” is the sole instance of the class “Person class”. “Person class” is an instance of the class “Metaclass”.

Ramon goes on to explain why that matters - just go read it, because all I'd do here is repeat what he wrote :)

Read: Turtles all the way Down

Topic: Not Just Standing Up Previous Topic   Next Topic Topic: Continuous Refactoring and ROI

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use