class A { void foo() { } } int main() { auto a = new A; auto x = (&a.foo).funcptr; } dmd output: Error: &a.foo is not an lvalue
while this works well: auto dlg = &a.foo; auto f_ptr = dlg.funcptr;
*** Issue 6173 has been marked as a duplicate of this issue. ***
Pull request for D2 branch: https://github.com/D-Programming-Language/dmd/pull/961
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/df406f1de78236092fee2a311a806a1226a596d8 fix Issue 2472 - Delegates are not lvalue. https://github.com/D-Programming-Language/dmd/commit/acc992258b592f4f9ed849a1064c3066993ab196 Merge pull request #961 from 9rnsr/fix2472 Issue 2472 - Delegates are not lvalue.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル