mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 13:40:20 +03:00
![]() Previously, reassigning such a wrapper resulted in the static immutable Regex!Char global for that pattern (`staticRe`) to be overwritten by the global for the new pattern (!). Made possible via alias this and the logical-const hack. Proposed fix: keep on allowing reassignments (people are already using them), but just point to another pattern's global. So use a common Wrapper struct type wrapping a pointer instead of an empty struct type per pattern. Bug reported in https://github.com/ldc-developers/ldc/issues/2961. |
||
---|---|---|
.. | ||
internal | ||
package.d |