Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive

Issue 14401 - typeid(shared X).init is empty for class types#1205

Merged
andralex merged 2 commits intodlang:masterfrom
9rnsr:fix14401
Apr 3, 2015
Merged

Issue 14401 - typeid(shared X).init is empty for class types#1205
andralex merged 2 commits intodlang:masterfrom
9rnsr:fix14401

Conversation

@9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Apr 3, 2015

https://issues.dlang.org/show_bug.cgi?id=14401

TypeInfo_Class needs to override init() method for the TypeInfo_Const and its derived TypeInfo classes.

Now all typeid(X).init for any type X is typed as const(void)[].
This is a small but necessary breaking change. If a class instance contains reference type fields, the instance image must be typed as const(void)[] rather than byte[n].

9rnsr added 2 commits April 4, 2015 04:01
`TypeInfo_Class` needs to override `init()` method for the `TypeInfo_Const` and its derived TypeInfo classes.
This is a small but necessary breaking change. If a class instance contains reference type fields, the instance image must be typed as const(void)[] rather than byte[n].
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

urgh... we really should have a compiler error for this stuff

@andralex
Copy link
Member

andralex commented Apr 3, 2015

Auto-merge toggled on

@andralex
Copy link
Member

andralex commented Apr 3, 2015

@9rnsr thanks! Could you please take a look at the failures, they seem related.

@schveiguy
Copy link
Member

compiler errors should be fixed with the merge of dlang/phobos#3143

@andralex
Copy link
Member

andralex commented Apr 3, 2015

@schveiguy thanks

andralex added a commit that referenced this pull request Apr 3, 2015
Issue 14401 - typeid(shared X).init is empty for class types
@andralex andralex merged commit bd3f4cb into dlang:master Apr 3, 2015
@9rnsr 9rnsr deleted the fix14401 branch April 5, 2015 16:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants