Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / May 2006

Tip: Looking for answers? Try searching our database.

Using "super" for base class in C++/CLI

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Edward Diener - 24 May 2006 13:33 GMT
In Managed C++ one could use __super to invoke a base class function.
Has this been changed to "super" or is it still "__super" ? Looking
through the MSDN help I could not find a hit for just "super".
David Anton - 24 May 2006 15:49 GMT
__super is one of the few double underscore keywords left in C++/CLI.
(__identifier is another).
Signature

David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter & VB to C++ converter
Instant J#: VB to J# converter

> In Managed C++ one could use __super to invoke a base class function.
> Has this been changed to "super" or is it still "__super" ? Looking
> through the MSDN help I could not find a hit for just "super".
Edward Diener - 24 May 2006 20:13 GMT
> __super is one of the few double underscore keywords left in C++/CLI.
> (__identifier is another).

Thanks, I should have suspected that when I could not find "super" for
VC++ in the VS2005 docs. I do remember that __identifier is there but I
thought it was the only double underscore keyword left. Now I know
different.
Holger Grund - 25 May 2006 14:25 GMT
>> __super is one of the few double underscore keywords left in C++/CLI.
>> (__identifier is another).
[quoted text clipped - 3 lines]
> thought it was the only double underscore keyword left. Now I know
> different.

Well, I'd argue __super is not specifically related to C++/CLI.

After all, there's still __stdcall, __declspec, __pragma etc.

In fact, some argue __super is especially useful with multiple
inheritance where the appropriate base class is selected based
on context.
Typically, however, you wouldn't use __super to refer to
an interface.

Anyway, I fail to see any case where you couldn't use
the (injected) base class name instead of using __super.

-hg

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.