-betterC and extern(C++) classes
    Walter Bright via Digitalmars-d 
    digitalmars-d at puremagic.com
       
    Sun Sep 10 02:31:55 PDT 2017
    
    
  
On 9/10/2017 1:40 AM, Yuxuan Shui wrote:
> I was experimenting with -betterC and found out that C++ classes doesn't work. 
> Because the resulting object file needs a symbol "_D14TypeInfo_Class6__vtblZ" 
> which is in druntime. I suppose this is to support T.classinfo?
> 
> Could we remove T.classinfo and make classes work under -betterC? Or is there 
> some other reason preventing this from happening?
Yes, we do want to move towards "Better C++" working in an analogous manner, and 
that means removing the typeinfo dependency.
    
    
More information about the Digitalmars-d
mailing list