Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
3rdRail
Blackfish SQL
C#Builder
C++BuilderX
CodeCentral
Conference
DBArtisan
Delphi for PHP
Delphi Prism
Delphi-BCB
EDN
InterBase
JBuilder
JBuilder 2007
Kylix
Optimizeit
QualityCentral
Test project
You are not logged in.
Help
Print
Public Report
Report From:
[ Add a report in this area ]
Report #:
8007
Status:
Closed
Forward record declarations cannot be made
Project:
Build #:
7.1.1503.28295
Version:
8.0
Submitted By:
Chee Wee Chua
Report Type:
Suggestion / Enhancement Request
Date Reported:
4/28/2004 6:17:52 PM
Severity:
Infrequently encountered problem
Last Updated:
3/20/2012 2:24:39 AM
Platform:
All platforms
Internal Tracking #:
199403
Resolution:
Inactive
(Resolution Comments)
Resolved in Build:
:
7.0.95.395
Duplicate of:
None
Voting and Rating
Overall Rating:
No Ratings Yet
0.00 out of 5
Total Votes:
None
Description
See example in Steps.
In the example given in Steps, I wanted to declare a Degree and Fahrenheit **record**, which can convert from one into the other.
Unfortunately, there seems to be no way to declare forward records, just as I can do with forward class declarations
Kindly implement forward record declarations in the language.
Steps to Reproduce:
I cannot declare forward class records like so,
Degree = packed record;
Fahrenheit = packed record(IConvertible)
class operator Implicit(AValue: Degree): Fahrenheit;
end;
Degree = packed record(IConvertible)
class operator Implicit(AValue: Fahrenheit): Degree;
end;
But I can declare forward classes like so,
type
Degree = class;
Fahrenheit = class
class operator Implicit(AValue: Degree): Fahrenheit;
end;
Degree = class
class operator Implicit(AValue: Fahrenheit): Degree;
end;
class operator Fahrenheit.Implicit(AValue: Degree): Fahrenheit;
begin
end;
class operator Degree.Implicit(AValue: Fahrenheit): Degree;
begin
end;
Workarounds
None
Attachment
None
Comments
None
View Your Reports
Search
Server Response from: ETNACODE01
Developer Tools
Blackfish SQL
C++Builder
Delphi
FireMonkey
Prism
InterBase
JBuilder
J Optimizer
HTML5 Builder
3rdRail & TurboRuby
Database Tools
Change Manager
DBArtisan
DB Optimizer
ER/Studio
Performance Center
Rapid SQL
Technical Articles
Tutorials
White Papers
Press Releases
Newsletters
Add Content (GetPublished)
Audio
Audio & Video
Video
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Tags
Technology Partners
Downloads
Free Trials
Registered User Downloads
Beta Programs
Add Content (GetPublished)
Articles
Blogs
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Member Services
About
Connect with Us