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.
...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.
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.
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.
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.
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
** 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.
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
_______________________________________________
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.
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.
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.
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.