Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
Delphi-BCB
Compiler
Delphi
Language
Overloading
Global
Method
You are not logged in.
Help
Print
Public Report
Report From:
Delphi-BCB/Compiler/Delphi/Language/Overloading/Method
[ Add a report in this area ]
Report #:
79573
Status:
Open
Can not get address of class static overloaded methods
Project:
Delphi
Build #:
14.0.3593.25826
Version:
14.0
Submitted By:
Seamour Chen
Report Type:
Basic functionality failure
Date Reported:
11/17/2009 3:04:54 AM
Severity:
Commonly encountered problem
Last Updated:
3/20/2012 2:24:39 AM
Platform:
All platforms
Internal Tracking #:
273676
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:
None
Description
The compiling failed if try to get addr of a overloaded class statick method.
for exp:
Tfoo
= class
public
class procedure bar; overload; static;
class procedure bar(V: Integer); overload; static;
end;
there is no way to get the addr of class procedure Tfoo.bar(V: Integer)
Steps to Reproduce:
program GetClassStaticOverloadMethods;
{$APPTYPE CONSOLE}
type
Tfoo
= class
public
class procedure bar; overload; static;
class procedure bar(V: Integer); overload; static;
end;
{ Tfoo }
class procedure Tfoo.bar;
begin
end;
class procedure Tfoo.bar(V: Integer);
begin
end;
var
bar0 : procedure;
bar1 : procedure(V: Integer);
begin
bar0 := Tfoo.bar;
bar1 := Tfoo.bar;
end.
=======================
[DCC Error] E2124 Instance member 'Tfoo.bar' inaccessible here
[DCC Error] E2124 Instance member 'bar' inaccessible here
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