should I commit this?

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

should I commit this?

Eliot Miranda-2
SystemNavigation class methods for error handling
doesNotUnderstand: aMessage
(self includesSelector: aMessage selector) ifTrue:
[^self default perform: aMessage selector withArguments: aMessage arguments].
^super doesNotUnderstand: aMessage

fed up of typing new ;)
--
best,
Eliot




SystemNavigation class-doesNotUnderstand.st (512 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: should I commit this?

Gary Chambers-4
Lol, use sparingly... Took a minute to discern your intent, despite the hint.
Perhaps a pattern for absolute singletons but then, why not the class itself being that behaviour in the first place?

Regards, Gary

Sent from my iPad

On 19 Apr 2012, at 02:55, Eliot Miranda <[hidden email]> wrote:

> SystemNavigation class methods for error handling
> doesNotUnderstand: aMessage
> (self includesSelector: aMessage selector) ifTrue:
> [^self default perform: aMessage selector withArguments: aMessage arguments].
> ^super doesNotUnderstand: aMessage
>
> fed up of typing new ;)
> --
> best,
> Eliot
>
> <SystemNavigation class-doesNotUnderstand.st>
>

Reply | Threaded
Open this post in threaded view
|

Re: should I commit this?

Colin Putney-3
In reply to this post by Eliot Miranda-2
On Wed, Apr 18, 2012 at 6:55 PM, Eliot Miranda <[hidden email]> wrote:
> SystemNavigation class methods for error handling
> doesNotUnderstand: aMessage
> (self includesSelector: aMessage selector) ifTrue:
> [^self default perform: aMessage selector withArguments: aMessage
> arguments].
> ^super doesNotUnderstand: aMessage
>
> fed up of typing new ;)

Argh… better not.

Reply | Threaded
Open this post in threaded view
|

Re: should I commit this?

Eliot Miranda-2
In reply to this post by Gary Chambers-4


On Wed, Apr 18, 2012 at 7:09 PM, Gary Chambers <[hidden email]> wrote:
Lol, use sparingly... Took a minute to discern your intent, despite the hint.
Perhaps a pattern for absolute singletons but then, why not the class itself being that behaviour in the first place?

Doctrine.
 
Regards, Gary

Sent from my iPad

On 19 Apr 2012, at 02:55, Eliot Miranda <[hidden email]> wrote:

> SystemNavigation class methods for error handling
> doesNotUnderstand: aMessage
>       (self includesSelector: aMessage selector) ifTrue:
>               [^self default perform: aMessage selector withArguments: aMessage arguments].
>       ^super doesNotUnderstand: aMessage
>
> fed up of typing new ;)
> --
> best,
> Eliot
>
> <SystemNavigation class-doesNotUnderstand.st>
>




--
best,
Eliot



Reply | Threaded
Open this post in threaded view
|

Re: should I commit this?

ccrraaiigg
In reply to this post by Eliot Miranda-2

     No. :)


-C

--
Craig Latta
www.netjam.org/resume
+31   6 2757 7177
+ 1 415  287 3547 (no SMS)



Reply | Threaded
Open this post in threaded view
|

Re: should I commit this?

Bert Freudenberg
In reply to this post by Eliot Miranda-2

On 18.04.2012, at 18:55, Eliot Miranda wrote:

> SystemNavigation class methods for error handling
> doesNotUnderstand: aMessage
> (self includesSelector: aMessage selector) ifTrue:
> [^self default perform: aMessage selector withArguments: aMessage arguments].
> ^super doesNotUnderstand: aMessage
>
> fed up of typing new ;)
> --
> best,
> Eliot
>
> <SystemNavigation class-doesNotUnderstand.st>


-1

- Bert -



Reply | Threaded
Open this post in threaded view
|

RE: should I commit this?

Ron Teitelbaum
In reply to this post by Eliot Miranda-2

Hi Eliot,

 

That’s pretty funny.

 

Why stop there, why not recompile the method with new in it?  J

 

Ron Teitelbaum

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Eliot Miranda
Sent: Wednesday, April 18, 2012 9:55 PM
To: The general-purpose Squeak developers list
Subject: [squeak-dev] should I commit this?

 

SystemNavigation class methods for error handling

doesNotUnderstand: aMessage

          (self includesSelector: aMessage selector) ifTrue:

                      [^self default perform: aMessage selector withArguments: aMessage arguments].

          ^super doesNotUnderstand: aMessage

 

fed up of typing new ;)

--
best,

Eliot