Install Pharo on Win 7 64 bit computer

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

Install Pharo on Win 7 64 bit computer

Dan
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.

Dan
Reply | Threaded
Open this post in threaded view
|

Re: Install Pharo on Win 7 64 bit computer

philippeback
DateAndTime now

---
Philippe Back
Dramatic Performance Improvements
Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027
Blog: http://philippeback.be | Twitter: @philippeback

High Octane SPRL
rue cour Boisacq 101 | 1301 Bierges | Belgium

Pharo Consortium Member - http://consortium.pharo.org/
Featured on the Software Process and Measurement Cast - http://spamcast.libsyn.com
Sparx Systems Enterprise Architect and Ability Engineering EADocX Value Added Reseller
 



On Mon, Dec 23, 2013 at 12:52 PM, Daniel Roe <[hidden email]> 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.

Dan

Reply | Threaded
Open this post in threaded view
|

Re: Install Pharo on Win 7 64 bit computer

philippeback
In reply to this post by Dan
Time now

works too, just the time then.

---
Philippe Back
Dramatic Performance Improvements
Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027
Blog: http://philippeback.be | Twitter: @philippeback

High Octane SPRL
rue cour Boisacq 101 | 1301 Bierges | Belgium

Pharo Consortium Member - http://consortium.pharo.org/
Featured on the Software Process and Measurement Cast - http://spamcast.libsyn.com
Sparx Systems Enterprise Architect and Ability Engineering EADocX Value Added Reseller
 



On Mon, Dec 23, 2013 at 12:52 PM, Daniel Roe <[hidden email]> 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.

Dan

Dan
Reply | Threaded
Open this post in threaded view
|

Re: Install Pharo on Win 7 64 bit computer

Dan
Thank you - forgot that Time was case sensitive - I'm learning

Dan
Reply | Threaded
Open this post in threaded view
|

Re: Install Pharo on Win 7 64 bit computer

David T. Lewis
In reply to this post by Dan
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