[Issue 12339] "alais this" not considered for qualified conversion

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 10 13:26:22 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12339



--- Comment #2 from monarchdodra at gmail.com 2014-03-10 13:26:18 PDT ---
(In reply to comment #1)
> I think it does not work because struct contains pointer. If you comment out
> it, it will work.
>
> Note that dispite you alias to S type, S itself contains indirections.

I know, that was the point. I *wanted* a type were "const(S)" can't be
implicitly cast to "S"

The "issue" is that "const(S)" has an alias this to a function that produces an
"S", meaning (AFAIK) that according to alias this rules, that this conversion
should be considered.

I mean: Why would "alias this" be OK to get an "int", but doesn't work to get
an "S"?

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


More information about the Digitalmars-d-bugs mailing list