Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Class Completion    [ Add a report in this area ]  
Report #:  58323   Status: Open
Class Completion behaves badly with strict sections
Project:  Delphi Build #:  11.0.2902.10471
Version:    11.2 Submitted By:   Brian Kohrs
Report Type:  Basic functionality failure Date Reported:  2/15/2008 12:18:42 PM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   258004
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (1 Total Rating)
5.00 out of 5
Total Votes: 42
Description
If you have a class that contains strict private or strict protected, class completion behaves very poorly.
Steps to Reproduce:
1. Open the attached project
2. Code complete TFoo

Expected result:

  TFoo = class
  strict private
    FFoo: Integer;
    FBaz: Integer;
    procedure SetBaz(const Value: Integer);
  strict protected
    procedure Bar;
  public
    property Baz: Integer read FBaz write SetBaz;
  end;

Actual result:

  TFoo = class
  strict private
    FFoo: Integer;
  strict
  private
    FBaz: Integer;
    procedure SetBaz(const Value: Integer); protected
    procedure Bar;
  published
  public
    property Baz: Integer read FBaz write SetBaz;
  end;
Workarounds
Don't use class completion or don't use strict private/strict protected.
Attachment
Project1.zip
Comments

None

Server Response from: ETNACODE01