On Mon, Dec 23, 2013 at 06:52:25AM -0500, Daniel Roe wrote:
> I
> am trying to install Pharo on a Win7 64 bit computer and am following the
> examples given in the manual.
>
> I open up a new workspace and type in
>
> time now
>
> Then choose - print it - from the action menu and I get an error message stating that the
> receiver of "now" is nil. i realize it's probably something really stupid I'm missing but I need help please.
Hi Dan,
Try doing this again with upper-case 'T' like this:
Time now
Explanation: There is a class in the system called 'Time'. That class is
an object (like everything else in the system), and the object knows
how to respond to the message called 'now'. When you evaluate the expression
'Time now' (by choosing print it in the workspace), the 'now' message is
sent to the 'Time' object, which responds with the current time.
What you saw instead was the result of sending the message 'now' to
an undefined variable 'time' in your workspace. Your 'now' message was
received by a special object called 'nil' that represents the undefined
object. When the object called 'nil' received your 'now' message, it
generated the error message that you saw.
HTH,
Dave