haltIfShiftPressed

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

haltIfShiftPressed

niko.schwarz
Hi list,

http://code.google.com/p/pharo/issues/detail?id=2510&can=4&colspec=ID%20Type%20Status%20Summary%20Milestone%20Difficulty

I suggest the following snippet in object to ease debugging:

Object>>haltIfShiftPressed
  self haltIf: [Sensor shiftPressed]

Pharo image: core
Pharo core version: #11383
Virtual machine used:  pharo-vm-osx

--
http://scg.unibe.ch/staff/Schwarz
twitter.com/nes1983
Tel: +41 076 235 8683

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: haltIfShiftPressed

niko.schwarz
Seriously, I think the method should be called "h". Just that.
Nobody's going to type a method name as long as haltIfShiftPressed for
debugging. Debugging is not about readability.

Cheers,

Niko

On Sat, Jun 5, 2010 at 3:31 PM, Niko Schwarz
<[hidden email]> wrote:

> Hi list,
>
> http://code.google.com/p/pharo/issues/detail?id=2510&can=4&colspec=ID%20Type%20Status%20Summary%20Milestone%20Difficulty
>
> I suggest the following snippet in object to ease debugging:
>
> Object>>haltIfShiftPressed
>  self haltIf: [Sensor shiftPressed]
>
> Pharo image: core
> Pharo core version: #11383
> Virtual machine used:  pharo-vm-osx
>
> --
> http://scg.unibe.ch/staff/Schwarz
> twitter.com/nes1983
> Tel: +41 076 235 8683
>



--
http://scg.unibe.ch/staff/Schwarz
twitter.com/nes1983
Tel: +41 076 235 8683

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project