diff options
| author | Yong He <yonghe@outlook.com> | 2024-08-27 18:48:41 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-27 18:48:41 -0700 |
| commit | 4f6f827e26ffcb9b850ef8a8b7f7b4beb5addb7a (patch) | |
| tree | e8f20e798866df7e10067ce5b7ae22f9dc57ff84 /source/slang/core.meta.slang | |
| parent | fbaa444d890f58fabc5933b0c28048d2c5d862c0 (diff) | |
Add functor syntax support. (#4926)
Diffstat (limited to 'source/slang/core.meta.slang')
| -rw-r--r-- | source/slang/core.meta.slang | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/slang/core.meta.slang b/source/slang/core.meta.slang index db0acb3ed..629737d6c 100644 --- a/source/slang/core.meta.slang +++ b/source/slang/core.meta.slang @@ -957,25 +957,25 @@ extension Tuple<T> : IComparable interface IMutatingFunc<TR, each TP> { [mutating] - TR __call(expand each TP p); + TR operator()(expand each TP p); } interface IFunc<TR, each TP> : IMutatingFunc<TR, expand each TP> { - TR __call(expand each TP p); + TR operator()(expand each TP p); } interface IDifferentiableMutatingFunc<TR : IDifferentiable, each TP : IDifferentiable> : IMutatingFunc<TR, expand each TP> { [Differentiable] [mutating] - TR __call(expand each TP p); + TR operator()(expand each TP p); } interface IDifferentiableFunc<TR : IDifferentiable, each TP : IDifferentiable> : IFunc<TR, expand each TP>, IDifferentiableMutatingFunc<TR, expand each TP> { [Differentiable] - TR __call(expand each TP p); + TR operator()(expand each TP p); } __generic<T> |
