realbasic-nug
[Top] [All Lists]

Property copy/paste bug in IDE

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Property copy/paste bug in IDE
From: "Peter K. Stys" <pkstys@gmail.com>
Date: Tue, 1 Sep 2009 00:51:23 -0600
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com; dkim=neutral (body hash did not verify) header.i=@gmail.com
Delivered-to: listarchive@realsoftware.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=7DbSAcTARc3kGo9INrqVEugJKFOVX2XmtemiRaCvnWo=; b=ScmKOjQTab3Agt7gqsRQ0qRBeELQtwclxNEXPoPu9k2gXsdgRFz2FIDDOSPgjr9xoB MmuRu5c0Z+xmV0xL9QsECCA6Je1eP/GZWvXqzMQpcIgX+yVrz4Sbvf6il+m4JB42JXnX aCiqnVMLZbU9FEMV98W376wT74LyuR6RbkJnY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=GmET7asPjP/Orxe1HZFt5VSDSDirZI3W/MpD+YG+rusEBE6lroZmxrzMFGWeocq7jg 8sPGto3PakHSZGQlFzNPpD3OMNmSAoaxmaHsch8+mk3p6MHXVatF/8tVhRqdgJp2GpoM 3EiFxUf/JLfQGWOtF5DVC7Rmeu+YzqBhpaKyg=
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
In your window, create this property:

w as WeakRef

now copy/paste it, you get:

w1 as WeakRef = 0   <- this fails to compile because you get type mismatch.

Easy to fix, just delete the 0 from the default value field.

Now create a computed property:

w as window

copy and paste it, you get:

w as window = 0

which fails to compile because of a syntax error (it's a computed property,
I guess that's the error?).  Problem is, computed properties don't have
default value fields that you can clear, so you're stuck and have to
manually re-enter/retype this computed property with all its Get/Set code.

I pasted dozens of copies of the same computed property thruout my app in my
attempt to move to WeakRefs to windows (see my previous thread why), only to
be faced with dozens of uncorrectable 'w as window = 0' computed property
declarations that failed to compile and could not be edited and fixed.  And
this was supposed to save me time...

P.

-- 
---------------------------------------------
Peter K. Stys, MD
Dept. of Clinical Neurosciences
Hotchkiss Brain Institute
University of Calgary
tel (403) 210-8646
---------------------------------------------
_______________________________________________
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>
  • Property copy/paste bug in IDE, Peter K. Stys <=