realbasic-nug
[Top] [All Lists]

Re: An interesting DIM gotcha

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: An interesting DIM gotcha
From: Norman Palardy <npalardy at great-white-software dot com>
Date: Thu, 31 Aug 2006 19:07:03 -0600
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20060831230418 dot 6B316148E064 at lists dot realsoftware dot com> <44421549-7290-4CA2-8D78-A4F847F0E299 at animeigo dot com>

On Aug 31, 2006, at 6:22 PM, Robert Woodhead wrote:

Quick quiz, campers.  What does the following statement do?

  DIM reg1,reg2,reg3 as new regEx

This behavior has been around for a long time

It's one reason why I NEVER use this sort of declaration and have
thus never had this problem

Well, the whole point is that this gotcha will bite each victim exactly
once.  That's why I think it ought to be a compile error.

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


<Prev in Thread] Current Thread [Next in Thread>