realbasic-nug
[Top] [All Lists]

Re: Siamese twin instances ("dim r1,r2 as new regex")

To: "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Siamese twin instances ("dim r1,r2 as new regex")
From: "Adam Shirey" <adam dot shirey at gmail dot com>
Date: Thu, 17 May 2007 07:43:05 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <da83ff37c5b7d743fb04cf578c28e3c2 at free dot fr> <BAY107-DAV3EBADA3B776ADB8C707F9933C0 at phx dot gbl> <4588ac300705160614v1cbdbacl8a86b93025540a20 at mail dot gmail dot com>
If not illegal syntax, it would be nice to have the compiler throw a
warning (but not fail). I remember the first (and last) time I made
that error. It took me entirely too long to figure out what was going
on and why.


-Adam

On 5/16/07, Jim Dossey <jim dot dossey at gmail dot com> wrote:
> I wouldn't be at all surprised if some future version of RB made the Siamese
> Dims syntax illegal.
>
> On 5/16/07, Daniel Stenning <d0stenning at msn dot com> wrote:
> >
> > Sure but you don't get two seperate instances, you will get two
> > referrences
> > both pointing to the same instance.
> >
> > Its best always to instantiate explicitly seperately as in your second
> > example.
> >
> >
> > On 16/5/07 11:17, "Octave Julien" <ktawo at free dot fr> wrote:
> >
> > > If I understand correctly the Language reference's entries for DIM and
> > > NEW, it is possible to dim two new instances in the same statement.
> >
> > Regards,
> >
> > Dan
> >
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
>


-- 
-Adam
dingostick.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


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