mystruct foo;
foo[1337].isnull=true;
=>
foo.opIndexOpAssignOpDispatch!"isnull"(1337,true)
it fits the naming scheme!
Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
June 15 opIndexOpAssignOpDispatch | ||||
---|---|---|---|---|
| ||||
=> it fits the naming scheme! |
June 15 Re: opIndexOpAssignOpDispatch | ||||
---|---|---|---|---|
| ||||
Posted in reply to monkyyy | On Saturday, 15 June 2024 at 04:58:58 UTC, monkyyy wrote: >
=> it fits the naming scheme! You can implement an opIndex overload that returns a struct that itself supports opDispatch.
dont underestimate what's already possible ! |
June 17 Re: opIndexOpAssignOpDispatch | ||||
---|---|---|---|---|
| ||||
Posted in reply to Basile B. | On Saturday, 15 June 2024 at 08:33:07 UTC, Basile B. wrote: >On Saturday, 15 June 2024 at 04:58:58 UTC, monkyyy wrote: >
=> it fits the naming scheme! You can implement an opIndex overload that returns a struct that itself supports opDispatch.
dont underestimate what's already possible !
|
June 18 Re: opIndexOpAssignOpDispatch | ||||
---|---|---|---|---|
| ||||
Posted in reply to Quirin Schroll | On Monday, 17 June 2024 at 13:40:13 UTC, Quirin Schroll wrote: >On Saturday, 15 June 2024 at 08:33:07 UTC, Basile B. wrote: >On Saturday, 15 June 2024 at 04:58:58 UTC, monkyyy wrote: >
=> it fits the naming scheme! You can implement an opIndex overload that returns a struct that itself supports opDispatch.
dont underestimate what's already possible !
Nice. While the pattern was clear enough to be developped I'm still slightly concerned about escaping |
June 20 Re: opIndexOpAssignOpDispatch | ||||
---|---|---|---|---|
| ||||
Posted in reply to Basile B. | On Tuesday, 18 June 2024 at 09:37:46 UTC, Basile B. wrote: >On Monday, 17 June 2024 at 13:40:13 UTC, Quirin Schroll wrote: >On Saturday, 15 June 2024 at 08:33:07 UTC, Basile B. wrote: >On Saturday, 15 June 2024 at 04:58:58 UTC, monkyyy wrote: >
=> it fits the naming scheme! You can implement an opIndex overload that returns a struct that itself supports opDispatch.
dont underestimate what's already possible !
Nice. While the pattern was clear enough to be developped I'm still slightly concerned about escaping Copies are largely irrelevant. With Improved code:
|
June 20 Re: opIndexOpAssignOpDispatch | ||||
---|---|---|---|---|
| ||||
Posted in reply to monkyyy |