Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
Delphi-BCB
RTL
Delphi
Arithmetic
ConvUtils
Date - Time
DateUtils
File Management
Format + Float
Input/Output
Math Unit
Memory, Pointer, Address
Null-terminated strings
Other Classes
Other RTL
Pascal Strings
Regular Expressions
RTL Exceptions
Text Files
Thread support
Typed/Untyped Files
WinAPI
You are not logged in.
Help
Print
Public Report
Report From:
Delphi-BCB/RTL/Delphi/RTL Exceptions
[ Add a report in this area ]
Report #:
3530
Status:
Withdrawn
Exception.CreateRes*() should be deprecated
Project:
Delphi
Build #:
4.453
Version:
7.0
Submitted By:
Troy Wolbrink
Report Type:
Suggestion / Enhancement Request
Date Reported:
2/13/2003 8:18:06 PM
Severity:
Infrequently encountered problem
Last Updated:
5/2/2003 12:58:35 PM
Platform:
All platforms
Internal Tracking #:
Resolution:
None
Resolved in Build:
:
None
Duplicate of:
None
Voting and Rating
Overall Rating:
No Ratings Yet
0.00 out of 5
Total Votes:
None
Description
resourcestring
SExampleError = 'This is a sample error.';
begin
// example #1
raise Exception.CreateRes(@SExampleError);
// example #2
raise Exception.Create(SExampleError);
end;
Both examples do exactly the same thing. Example 2 is more readable.
---------------------------------------------
Actually the CreateRes* constructors come in two flavors:
{A} constructor CreateRes(Ident: Integer); overload;
{B} constructor CreateRes(ResStringRec: PResStringRec); overload;
I'm not debating the use of {A}. I just think {B} is not needed and should be deprecated.
Steps to Reproduce:
None
Workarounds
None
Attachment
None
Comments
ACOUSTA Software Engineer at 2/14/2003 1:17:51 AM
-
I think that it should be as it is. Every programmer should have the choice of using the constructor in that way he wants. Also it's not a must to declare resources via resourcestring and then you would maybe happy to have the free choice.
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