what about:

 dim f1, f2 as new FolderItem

 f1 = GetOpenFolderItem("")

what do you think f2 points to after you do the GetOpenFolderItem?
Not what you'd expect from the above discussions.  So these
inconsistencies are bound to bite many of us forever.

P.


On 9/1/06, Walter Purvis <[EMAIL PROTECTED]> wrote:
>  -----Original Message-----
>  Subject: Re: An interesting DIM gotcha
>
>  >>>>   DIM reg1,reg2,reg3 as new regEx
>
>  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.

The Language Reference says:

"If you write:

Dim a, b as New MemoryBlock(10)

Both a and b point to the same Memoryblock."


Is that not clear enough for you?



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



--
-------------------------------------------------------------------------------
Peter K. Stys, MD
Professor of Medicine(Neurology), Senior Scientist
Ottawa Health Research Institute, Div. of Neuroscience
Ottawa Hospital / University of Ottawa
Ontario, CANADA
tel:    (613)761-5444
fax:    (613)761-5330
http://www.ohri.ca/profiles/stys.asp
-------------------------------------------------------------------------------
_______________________________________________
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>

Reply via email to