Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/Delphi/Language/Default Parameters    [ Add a report in this area ]  
Report #:  102699   Status: Open
Default Parameters support record
Project:  Delphi Build #:  15.0.3953.35171
Version:    15.1 Submitted By:   wenjie zhou
Report Type:  Suggestion / Enhancement Request Date Reported:  1/18/2012 5:22:16 PM
Severity:    Serious / Highly visible problem Last Updated: 8/6/2012 12:50:34 PM
Platform:    All versions Internal Tracking #:  
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 5
Description
type
  TRecordType = record
     Value1: Integer;
     Value2: Integer;
  end;

procedure Fun(const R: TRecordType = (Value1: 1; Value2: 2))
Steps to Reproduce:
Hope that the default parameters can support record type;

type
  TRecordType = record
     Value1: Integer;
     Value2: Integer;
  end;

procedure Fun1(const R: TRecordType = (Value1: 1; Value2: 2));

procedure Fun2(var R: TRecordType = (Value1: 1; Value2: 2));
Workarounds
None
Attachment
None
Comments

None

Server Response from: ETNACODE01