Pow Expressions - not worth the juice?

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Tue Feb 3 01:05:27 UTC 2026


On 03/02/2026 9:52 AM, jmh530 wrote:
> On Monday, 2 February 2026 at 17:48:20 UTC, Richard (Rikki) Andrew 
> Cattermole wrote:
>> On 03/02/2026 6:43 AM, Walter Bright wrote:
>>> https://dlang.org/spec/expression.html#pow_expressions
>>>
>>> They're a bit of an oddball feature in D, in that it's the only 
>>> feature that relies on Phobos for its implementation.
>>>
>>> Time for it to go?
>>
>> Absolutely not, the implementation can be moved to based as soon as we 
>> have something like bundles solving binaries.
>>
>> This is precisely what based is meant to be able to solve.
> 
> based? bundles solving binaries? Not sure on what these are...

Based is part of PhobosV3 work, and lives "under" druntime.

For all intents and purposes its a library that will always exist if you 
have D, and will provide things like atomics and bit manipulation.

Bundles is an approach to software/source code distribution, its used on 
osx.

Right now we use a very hard coded approach, that doesn't support based 
or PhobosV3.

If you're not contributing to druntime or compiler you can basically 
ignore it.



More information about the Digitalmars-d mailing list