Re: Messages as first class objects

From: Isaac Gouy (igouy_at_yahoo.com)
Date: 05/02/04


Date: 2 May 2004 12:01:03 -0700


"Volker Bäcker" <baecker@crbm.cnrs-mop.fr> wrote in message news:<c6tons$gbfmc$1@ID-218123.news.uni-berlin.de>...
> "Calum" <calum.bulk@ntlworld.com> schrieb im Newsbeitrag
> news:c6tf7c$2g0$1@newsg1.svr.pol.co.uk...
> > I have read that "messages", "member functions" and "methods" are all
> > fairly similar concepts. For example
> >
> > io.write("Hello")
> >
> write("Hello") is a message that is sent to io. io has (hopefully) a member
> function write. This member function is a method.
> > is fairly unambiguous. But how many languages allow you to take a
> > message in isolation? e.g.
> >
> > x = write("Hello") # x is a message
> > io.x # send message x to io
> Smalltalk does. In VisualWorks Smalltalk there are classes like
> CompiledMethod and others that represent methods.

Are we talking about 'messages' or 'methods'?

Here's a Smalltalk 'message' example:
   messageSelector := #write:.
   io perform: messageSelector with: 'Hello'.



Relevant Pages

  • Re: Messages as first class objects
    ... This member function is a method. ... In VisualWorks Smalltalk there are classes like ... It's also useful in Smalltalk to implement proxy objects. ... redispatches aMessage to the real object ...
    (comp.object)
  • Re: creaping coupling......
    ... >>of your original examples on your web site were from Smalltalk. ... > examples in those languages either. ... statically bound fee (dependency management). ... to relative addresses but in a dynamically bound OOPL one still needs ...
    (comp.object)
  • Re: Static vs. Dynamic typing (big advantage or not)---WAS: c.programming: OOP and memory management
    ... >>A few years ago I started learning Smalltalk. ... >>features in alternative languages. ... > know that there is widespread ignorance about programming language features ... eiffel developers even though the type system in eiffel is superior to Java. ...
    (comp.object)
  • Re: Static vs. Dynamic typing (big advantage or not)---WAS: c.programming: OOP and memory management
    ... >>A few years ago I started learning Smalltalk. ... >>features in alternative languages. ... > know that there is widespread ignorance about programming language features ... eiffel developers even though the type system in eiffel is superior to Java. ...
    (comp.programming)
  • Re: OT: HTML (WAS: MF having issues?)
    ... are real pissed that Java outshone Smalltalk, ... Does that book point the finger at Xerox or specifically at PARC? ... The original Smalltalk *required* the Smalltalk ... but isn't it nice that with both languages we can each satisfy ...
    (comp.lang.cobol)

Loading