Index
2010-08-25 01:53Steve Ellenoff : Beware the evil DODEFAULT()
2010-08-25 03:16Lew Schwartz : Re: Beware the evil DODEFAULT()
2010-08-25 05:47Grigore Dolghin : RE: Beware the evil DODEFAULT()
2010-08-25 07:17Eurico Chagas Filho : Res: Beware the evil DODEFAULT()
2010-08-25 09:30Stephen Russell : Re: Beware the evil DODEFAULT()
2010-08-25 10:03Lew : Re: Beware the evil DODEFAULT()
2010-08-25 10:55MB Software Solutions, LLC : Re: Beware the evil DODEFAULT()
2010-08-25 12:30Paul McNett : Re: Beware the evil DODEFAULT()
2010-08-25 12:41Steve Ellenoff : Re: Beware the evil DODEFAULT()
2010-08-25 12:42Steve Ellenoff : Re: Beware the evil DODEFAULT()
Back to top
Beware the evil DODEFAULT()

Author: Steve Ellenoff

Posted: 2010-08-25 01:53:41   Link

Thought I would remind everyone about this (sometimes not so obvious) bug...

FUNCTION SomeFunc( tnVal )

*Call Parent

DODEFAULT()

ENDFUNC

Should be: DODEFAULT(tnVal) .. IF the parent class takes a parameter

( which it may not depending on the parent class ).

This bugger was the cause of several bugs of mine recently.. Shame on me! :)

I get so used to typing DODEFAULT() that I don't stop to realize it

might need parameters passed..

Hope this info helps someone..

-Steve

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/979646.58889.qm@smtp102.sbc.mail.ac4.yahoo.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Steve Ellenoff
Back to top
Re: Beware the evil DODEFAULT()

Author: Lew Schwartz

Posted: 2010-08-25 03:16:50   Link

...and this is a bug because ....?

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/AANLkTi=ddMJbH3-aeRgFwBbHPnNj6uj5C7S48=GoPw20@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Lew Schwartz
Back to top
RE: Beware the evil DODEFAULT()

Author: Grigore Dolghin

Posted: 2010-08-25 05:47:40   Link

Well, it's not, but I think he meant the bug the programmer is inducing being unaware with.

> -----Original Message-----

> From: profoxtech-bounces@leafe.com [mailto:profoxtech-

> bounces@leafe.com] On Behalf Of Lew Schwartz

> Sent: Wednesday, August 25, 2010 10:17 AM

> To: profoxtech@leafe.com

> Subject: Re: Beware the evil DODEFAULT()

>

> ...and this is a bug because ....?

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/000301cb443a$8fc6e640$af54b2c0$@gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Grigore Dolghin
Back to top
Res: Beware the evil DODEFAULT()

Author: Eurico Chagas Filho

Posted: 2010-08-25 07:17:01   Link

Thanks Steve.

________________________________

De: Steve Ellenoff <sellenoff@pinmame.com>

Para: profox@leafe.com

Enviadas: Quarta-feira, 25 de Agosto de 2010 2:53:41

Assunto: Beware the evil DODEFAULT()

Thought I would remind everyone about this (sometimes not so obvious) bug...

FUNCTION SomeFunc( tnVal )

*Call Parent

DODEFAULT()

ENDFUNC

Should be: DODEFAULT(tnVal) .. IF the parent class takes a parameter

( which it may not depending on the parent class ).

This bugger was the cause of several bugs of mine recently.. Shame on me! :)

I get so used to typing DODEFAULT() that I don't stop to realize it

might need parameters passed..

Hope this info helps someone..

-Steve

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message:

http://leafe.com/archives/byMID/profox/979646.58889.qm@smtp102.sbc.mail.ac4.yahoo.com

** All postings, unless explicitly stated otherwise, are the opinions of the

author, and do not constitute legal or medical advice. This statement is added

to the messages for those lawyers who are too stupid to see the obvious.

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/476640.43688.qm@web37004.mail.mud.yahoo.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Eurico Chagas Filho
Back to top
Re: Beware the evil DODEFAULT()

Author: Stephen Russell

Posted: 2010-08-25 09:30:01   Link

On Wed, Aug 25, 2010 at 2:16 AM, Lew Schwartz <lew1716@gmail.com> wrote:

> ...and this is a bug because ....?

-----------------

The compiler didn't catch it. That is a bug.

--

Stephen Russell

Sr. Production Systems Programmer

CIMSgts

901.246-0159 cell

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/AANLkTikZnby-YpWrYHmsaB2RcU9UR1RDswQ7RN+D4hGN@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Stephen Russell
Back to top
Re: Beware the evil DODEFAULT()

Author: Lew

Posted: 2010-08-25 10:03:57   Link

Hmmm... see what you mean. OTOH, since DODEFAULT() is peculiar in that whether or not it takes parameters is up to the programmer, I don't see how it could. The compiler doesn't check udf's either, although I don't see why a better one couldn't.

-----Original Message-----

From: Stephen Russell <srussell705@gmail.com>

Sender: profoxtech-bounces@leafe.com

Date: Wed, 25 Aug 2010 08:30:01

To: <profoxtech@leafe.com>

Reply-To: profox@leafe.com

Subject: Re: Beware the evil DODEFAULT()

On Wed, Aug 25, 2010 at 2:16 AM, Lew Schwartz <lew1716@gmail.com> wrote:

> ...and this is a bug because ....?

-----------------

The compiler didn't catch it. That is a bug.

--

Stephen Russell

Sr. Production Systems Programmer

CIMSgts

901.246-0159 cell

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/AANLkTikZnby-YpWrYHmsaB2RcU9UR1RDswQ7RN+D4hGN@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

Report [OT] Abuse: http://leafe.com/reportAbuse/AANLkTikZnby-YpWrYHmsaB2RcU9UR1RDswQ7RN+D4hGN@mail.gmail.com

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/1701191251-1282745038-cardhu_decombobulator_blackberry.rim.net-404710302-@bda836.bisx.prod.on.blackberry

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Lew
Back to top
Re: Beware the evil DODEFAULT()

Author: MB Software Solutions, LLC

Posted: 2010-08-25 10:55:33   Link

Stephen Russell wrote:

> On Wed, Aug 25, 2010 at 2:16 AM, Lew Schwartz <lew1716@gmail.com> wrote:

>> ...and this is a bug because ....?

> -----------------

>

> The compiler didn't catch it. That is a bug.

>

No, it's just an unintentional kind of overloading. lol

--

Mike Babcock, MCP

MB Software Solutions, LLC

President, Chief Software Architect

http://mbsoftwaresolutions.com

http://fabmate.com

http://twitter.com/mbabcock16

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4C752EE5.7080001@mbsoftwaresolutions.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 MB Software Solutions, LLC
Back to top
Re: Beware the evil DODEFAULT()

Author: Paul McNett

Posted: 2010-08-25 12:30:54   Link

On 8/25/10 6:30 AM, Stephen Russell wrote:

> On Wed, Aug 25, 2010 at 2:16 AM, Lew Schwartz<lew1716@gmail.com> wrote:

>> ...and this is a bug because ....?

> -----------------

>

> The compiler didn't catch it. That is a bug.

VFP wasn't designed with static methods, so I don't see how you think VFP's compiler

could catch it. It could warn that there's potentially a problem, and it could catch

the case where you send too many parameters to a function (not sure, but I bet it

already catches this), but it wouldn't be able to say for certain that calling

DoDefault() with no parameters to a function that takes some parameters is definitely

an error.

Paul

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4C75453E.9040804@ulmcnett.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Paul McNett
Back to top
Re: Beware the evil DODEFAULT()

Author: Steve Ellenoff

Posted: 2010-08-25 12:41:37   Link

At 03:16 AM 08/25/2010, you wrote:

>...and this is a bug because ....?

Because if you code it the wrong way, your code will not work as expected! :)

I wasn't saying it was a VFP bug.. it's a programmer bug, which is

far worse, since then we can't blame it on VFP. Lol!

-Steve

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/596807.31484.qm@smtp101.sbc.mail.ac4.yahoo.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Steve Ellenoff
Back to top
Re: Beware the evil DODEFAULT()

Author: Steve Ellenoff

Posted: 2010-08-25 12:42:22   Link

I think Stephen was being intentionally sarcastic.. :)

At 12:30 PM 08/25/2010, you wrote:

>On 8/25/10 6:30 AM, Stephen Russell wrote:

> > On Wed, Aug 25, 2010 at 2:16 AM, Lew Schwartz<lew1716@gmail.com> wrote:

> >> ...and this is a bug because ....?

> > -----------------

> >

> > The compiler didn't catch it. That is a bug.

>

>VFP wasn't designed with static methods, so I don't see how you

>think VFP's compiler

>could catch it. It could warn that there's potentially a problem,

>and it could catch

>the case where you send too many parameters to a function (not sure,

>but I bet it

>already catches this), but it wouldn't be able to say for certain

>that calling

>DoDefault() with no parameters to a function that takes some

>parameters is definitely

>an error.

>

>Paul

>

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/28626.30073.qm@smtp101.sbc.mail.ac4.yahoo.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Steve Ellenoff