How to call a templated overload of opIndex

Marc mailnawman at gmail.com
Fri Aug 15 18:00:29 UTC 2025


On Friday, 15 August 2025 at 17:51:50 UTC, Nick Treleaven wrote:
> On Friday, 15 August 2025 at 17:38:53 UTC, Marc wrote:
>> Hello,
>> In my typed data frames I've this type of code. It works for 
>> default value (float) but I can't call `opIndex!double[i, j]` 
>> or `opIndex!string[i,j]`.
>
> You need to write `opIndex!double(i, j)` to manually call the 
> method. (You're using square brackets).

Thanks for your reply. It works but it their a way to call it 
using square brackets something like `df!float[i, j]` instead of 
calling for example `df.opIndex!float(i,j)`?


More information about the Digitalmars-d-learn mailing list