[Issue 5314] Wrong error message: struct within immutable member and postblit function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 4 00:17:43 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5314



--- Comment #4 from Haruki Shigemori <rayerd.wiz at gmail.com> 2010-12-04 00:16:09 PST ---
(In reply to comment #3)
> Are you saying this is not a rejects-valid?

I think that this is maybe a rejects-invalid correctly.

Error: this is not mutable
Error: this is not mutable
Error: this is not mutable

However, this error message is bad clearly, because it hasn't line numbers and
type/variable names.
Of course, this message is strange that it is written by three times.

For example, I think that a following sentence is more better.

filename.d(4): struct ID has not both postblit and immutable member value

> I fail to see why structs with immutable members shouldn't be allowed to have a
> postblit function.

Uhmmm... I don't discuss the matter because it is other problem.
But, we need probably discussion of the problem that you said.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list