Thread overview
[Issue 18357] can break immutable with postblit
Feb 02, 2018
Ketmar Dark
Mar 06, 2018
ag0aep6g@gmail.com
Apr 03, 2018
anonymous4
Dec 17, 2022
Iain Buclaw
February 02, 2018
https://issues.dlang.org/show_bug.cgi?id=18357

Ketmar Dark <ketmar@ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ketmar@ketmar.no-ip.org

--
March 06, 2018
https://issues.dlang.org/show_bug.cgi?id=18357

ag0aep6g@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Ajieskola@gmail.com

--- Comment #1 from ag0aep6g@gmail.com ---
*** Issue 18561 has been marked as a duplicate of this issue. ***

--
March 19, 2018
https://issues.dlang.org/show_bug.cgi?id=18357

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrei@erdani.com

--- Comment #2 from Andrei Alexandrescu <andrei@erdani.com> ---
A similar example shows fetching a mutable pointer to immutable data:

----
int* g;

struct S
{
    int* x;
    this(this) { g = x; }
}

void main()
{
    immutable int* x = new int(42);
    assert(*x == 42); /* passes */
    auto s = immutable S(x);
    auto s2 = s; /* should be rejected */
}

--
April 03, 2018
https://issues.dlang.org/show_bug.cgi?id=18357

--- Comment #3 from anonymous4 <dfj1esp02@sneakemail.com> ---
Postblit should respect type qualifiers the same way const constructor does.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=18357

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--