Editions Ideas
Paul Backus
snarwin at gmail.com
Sun Jan 4 20:18:04 UTC 2026
On Thursday, 1 January 2026 at 00:33:13 UTC, Dom Disc wrote:
> On Thursday, 25 December 2025 at 00:04:05 UTC, Vladimir
> Panteleev wrote:
>> On Wednesday, 24 December 2025 at 18:10:52 UTC, Adam D. Ruppe
>> wrote:
>> [...]
>>
>> Your list looks good; one thing I'd add is that if you have
>> `@property ref int foo()` then `&foo` should get you an `int*`.
>
> There is one more thing that I would wish from @property:
>
> If I write a @property template, it should be callable by
> T.myProp instead of myProp!T, so that it is not distinct from
> "buildin" properies of a type. This would make it much easier
> to write generic code using them.
This already works lol.
```d
struct S {}
@property int foo(T)(T t) => 123;
void main()
{
S s;
assert(s.foo == 123); // ok
}
```
More information about the Digitalmars-d
mailing list