[Dlang-internal] Frontend Issues w/ implementing UFCS Partial Template Evaluation (for language server use)
Clouudy
Swergers123 at gmail.com
Tue Oct 7 15:57:22 UTC 2025
On Monday, 6 October 2025 at 20:04:43 UTC, Dennis wrote:
> On Monday, 6 October 2025 at 18:21:21 UTC, Clouudy wrote:
>> - How can I use the frontend to determine whether an
>> expression can be evaluated or not?
>> - How can I actually evaluate that expression using the
>> frontend?
>
> You can use `trySemantic` which returns `null` on failure, or
> the result of semantic analysis on the Expression on success.
> 'evaluate' in the frontend usually refers to constant folding /
> CTFE, but I assume you don't need that here.
Isn't CTFE required to evaluate whether something is an instance
of a template? How would I do that if that's true?
More information about the Dlang-internal
mailing list