digitalmars.D - What happen to ref accepts rvalues?
- 12345swordy (3/3) Jul 05 2020 There is currently a switch for it. I see no dip for it sense
- Petar Kirov [ZombineDev] (13/16) Jul 06 2020 It's implemented as of this dmd PR:
There is currently a switch for it. I see no dip for it sense then, has it been abandon or simply forgotten? -Alex
Jul 05 2020
On Monday, 6 July 2020 at 03:43:16 UTC, 12345swordy wrote:There is currently a switch for it. I see no dip for it sense then, has it been abandon or simply forgotten? -AlexIt's implemented as of this dmd PR: https://github.com/dlang/dmd/pull/9817 It seems to works fine - so far I've been using it on a small project and I haven't noticed any issues, though until this switch is enabled by default it's hard to say whether it's production ready, since we don't have (yet) much feedback from the broader community. This PR added a couple of links as documentation of this feature as comments in the frontend code: https://github.com/dlang/dmd/pull/10633/files I suggest you give it a try and report any issues if you notice anything strange.
Jul 06 2020