Try DateAndTime now

On Sunday, October 27, 2013, Charles Hixson <charleshi...@earthlink.net>
wrote:
> Hello,
> Thanks for the response.  However being as I'm of the level of experience
where using profStef it's probably a poor idea for me to even TRY to fix
things.   I may be an experienced programmer, but my level of Smalltalk
knowledge is such that I'm only guessing at what you mean.  I can't
actually read the code you wrote.  And I wouldn't know how to even insert
it in my local image.  (I finished the tutorial, but it wasn't covering the
language to that depth.  And Pharo by Example keeps describing things that
don't match what I see on my screen.  Often I can figure out what is meant,
but sometimes there doesn't seem to be anything that does the same job.
(E.g., I haven't figured out how to get "Time now." to report in 24hour
time.)
>
> I THINK that this should be changed in profStef rather than in Object,
probably by removing the reference.  But that's just a guess.  (That much I
can do in my image, but I wouldn't want to do it in any shared code without
someone a LOT more knowledgeable saying it's a good idea, and watching over
my shoulder.)
>
> On 10/26/2013 10:56 PM, Clément Bera wrote:
>
> Hello,
> I think #executeMethod was a shortcut for method without arguments of the
method #withArgs:executeMethod:. I missed it too, so I guess you can add a
bug report, create and commit a slice and lastly it will be integrated in
Pharo in the next few days.
> #withArgs:executeMethod: is implemented in ProtoObject, but we take care
not to have too many methods there. This kind of facilities are usually in
Object (For example, #isNil is in ProtoObject, but #notNil which is a
facility for 'isNil not' is in Object). So I guess what you miss is:
> Object>>executeMethod: method
>     ^ self withArgs: #( ) executeMethod: method
> Best,
>
>
> 2013/10/26 Charles Hixson <charleshi...@earthlink.net>
>>
>> I'm using:
>>
>> Pharo2.0
>> Latest update: #20625
>>
>> I'm at "Reflection continued
>>
>> When I do the command to go to the next lesson:
>> ProfStef default executeMethod: (ProfStef lookupSelector:#next).
>>
>> I get the error:
>> ProfStef(Object) doesNotUnderstand: #executeMethod
>>
>> When I browse to the class in the system browser, ProfStef doesn't have
an executeMethod object.
>> I also checked Object and ProtoObject,just to be sure, but neither of
them listed an executeMethod either.
>>
>> P.S.:  I also looked at the Class Methods, though default looks like it
returns an instance, so that didn't feel reasonable.
>>
>> Where is executeMethod supposed to reside, and was this an intentional
change that just hasn't propagated yet ('m guessing the removal of the
method) or is something wrong with my image?  Also, if I wanted to include
it into ProfStef, what would the method look like?
>>
>> --
>> Charles Hixson
>>
>>
>
>
>
> --
> Charles Hixson

-- 
---
Philippe Back
Dramatic Performance Improvements
Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027
Mail:p...@highoctane.be | Web: http://philippeback.eu
Blog: http://philippeback.be | Twitter: @philippeback
Youtube: http://www.youtube.com/user/philippeback/videos

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

Reply via email to