On Sep 01, 2006, at 5:38 PM, Robert Woodhead wrote:
From: Norman Palardy <[EMAIL PROTECTED]>
DIM reg1,reg2,reg3 as new regEx
But its not an error in any way shape or form
The syntax is perfectly correct it's just the result is NOT what you
think it is
If RB is so proud of it, they ought to at least document the behavior
in the manual very prominently. Interpreting it as creating 3 regEx
instances is a very natural thing to do, and it's a nasty and
hard-to-figure-out bug when it bits you.
OK ... its not a bug.
It's possibly under-documented, but not a bug.
It's definitely surprising the first time you run into it.
Again, a damned good reason to NOT declare variables that way NOR use
NEW in the declaration.
It's much to easy o hide what's going on an make code harder to read
than is really necessary.
But, that's just my opinion after 20+ years of coding :)
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>