Dynamic Message Dispatch???

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Dynamic Message Dispatch???

dukester
Hello list...

Still haven't been able to compile GST from git sources ;( but life
goes one...

Currently Reading Alan Lovejoy's "Smalltalk: Getting The Message
The Essentials of Message-Oriented Programming with Smalltalk".

I'm not grokking this paragraph:

"Because of dynamic message dispatch, the semantics of sending a
message to an object depend absolutely on the object that receives the
message. The same message may be interpreted quite differently by
different objects, due to the fact that each object may use a
different method namespace in order to lookup a method based on the
selector of a message, and so may associate a different method with
the same message selector. Consequently, a message can be thought of
as an abstract function call which will result in the execution of
whatever concrete function (subroutine) is chosen by the object that
receives the message. The idea is that a message should name the
logical function to be computed, but the object receiving the message
should decide how best to physically compute the desired result. The
universal, pervasive application of this distinction between logical
function (semantics) and physical function (implementation strategy)
is the central point of object oriented programming, as defined and
envisioned by Dr. Kay."

Would one of you fine Smalltalkers explain the above in plain language
- 1 or 2 sentences would be good. I'm assuming that I _need_ to
understand what dynamic message dispatch means and how it works before
I can proceed intelligently. TIA...
--
duke


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Dynamic Message Dispatch???

kaveman
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Dynamic Message Dispatch???

Paolo Bonzini-2
In reply to this post by dukester
On 01/24/2010 05:10 AM, Duke Normandin wrote:
> Hello list...
>
> Still haven't been able to compile GST from git sources ;( but life
> goes one...

You can post another message with the details.

> Currently Reading Alan Lovejoy's "Smalltalk: Getting The Message
> The Essentials of Message-Oriented Programming with Smalltalk".
>
> I'm not grokking this paragraph:
>
> "Because of dynamic message dispatch, the semantics of sending a
> message to an object depend absolutely on the object that receives the
> message. The same message may be interpreted quite differently by
> different objects, due to the fact that each object may use a
> different method namespace in order to lookup a method based on the
> selector of a message, and so may associate a different method with
> the same message selector. Consequently, a message can be thought of
> as an abstract function call which will result in the execution of
> whatever concrete function (subroutine) is chosen by the object that
> receives the message. The idea is that a message should name the
> logical function to be computed, but the object receiving the message
> should decide how best to physically compute the desired result. The
> universal, pervasive application of this distinction between logical
> function (semantics) and physical function (implementation strategy)
> is the central point of object oriented programming, as defined and
> envisioned by Dr. Kay."
>
> Would one of you fine Smalltalkers explain the above in plain language
> - 1 or 2 sentences would be good. I'm assuming that I _need_ to
> understand what dynamic message dispatch means and how it works before
> I can proceed intelligently. TIA...

I suggest turning to www.stackoverflow.com for similar questions.  You
may get an answer here (Krishna's is good for example), but the audience
is relatively small.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Dynamic Message Dispatch???

dukester
On Sun, 24 Jan 2010, Paolo Bonzini wrote:

> On 01/24/2010 05:10 AM, Duke Normandin wrote:
> > Hello list...
> >
> > Still haven't been able to compile GST from git sources ;( but life
> > goes one...
>
> You can post another message with the details.
>

Hangs at this line in compilation:

ln -s -f /Users/dnormandin/smalltalk/packages/blox/browser/bear.gif /var/folders/3k/3kS2YndQER8R40CHtT+S4U+++TM/-Tmp-/gstar-os3xe2/BLOXBrowser/bear.gif

I'm using this script to build:

--------------------------------
#!/bin/bash
# script to re-build GNU-SmallTalk from the git repository

cd ~/smalltalk
echo "sourcing my_build_env ..."

source ./my_build_env

echo "building GNU-Smalltalk ..."

autoreconf -vi ; ./configure ; make ; make install
-------------------------------

01:10 pm >> cat smalltalk/my_build_env
export LIBTOOLIZE=/opt/local/bin/glibtoolize

--
duke




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk