Struggling to implement parallel foreach...
Kagamin
spam at here.lot
Sat Jun 15 16:52:10 UTC 2019
On Friday, 14 June 2019 at 18:51:38 UTC, Manu wrote:
> void test()
> {
> int x;
> void fun() const
> {
> pragma(msg, typeof(x)); // should print `const(int)` because
> typeof(const(Context*).x) == const(int), but it incorrectly
> prints
> `int`
> ++x; // <- should be an error, but the context pointer is
> not
> const, so this compiles!
> }
> }
>
> The context pointer is missing the qualifier.
It works for immutable qualifier, maybe type check there is too
simple and fails to address const.
More information about the Digitalmars-d
mailing list