From 54d496a9f9cf203d545e8385026d83d3f71cf5fb Mon Sep 17 00:00:00 2001 From: cxl Date: Fri, 14 Aug 2020 07:54:16 +0000 Subject: [PATCH] .docs git-svn-id: svn://ultimatepp.org/upp/trunk@14819 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Callback.h | 2 +- uppsrc/Core/src.tpp/Function_en-us.tpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/uppsrc/Core/Callback.h b/uppsrc/Core/Callback.h index c9578afa2..aeed8c0cd 100644 --- a/uppsrc/Core/Callback.h +++ b/uppsrc/Core/Callback.h @@ -1,4 +1,4 @@ -// Backward compatibility +// Backward compatibility; use Function/Event in the new code template class CallbackN : Moveable> { diff --git a/uppsrc/Core/src.tpp/Function_en-us.tpp b/uppsrc/Core/src.tpp/Function_en-us.tpp index 4a34e8af4..da6b2c44a 100644 --- a/uppsrc/Core/src.tpp/Function_en-us.tpp +++ b/uppsrc/Core/src.tpp/Function_en-us.tpp @@ -100,7 +100,9 @@ String>] is equivalent of [*C@5 Function].&] [s5;:Upp`:`:Gate`:`:typedef:%- [@(0.0.255) template using]_[* Gate]_`=_Function<[@(0.0.255) bool]_(ArgTypes[@(0.0.255) ...])>&] [s2; Creates alias for Function returning bool. For example, [*C@5 Gate] is equivalent of [*C@5 Function].&] +String>] is equivalent of [*C@5 Function]. +Note that empty Gate returns false (because empty Function returns +bool(), which is false).&] [s3;%- &] [s0;%- &] [ {{10000@(113.42.0) [s0; [*@7;4 MemFn and THISFN]]}}&]