1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-21 16:02:07 +00:00
serenity/Userland/Applications/TextEditor
Ali Mohammad Pur 51c2c69357 AK+Everywhere: Disallow constructing Functions from incompatible types
Previously, AK::Function would accept _any_ callable type, and try to
call it when called, first with the given set of arguments, then with
zero arguments, and if all of those failed, it would simply not call the
function and **return a value-constructed Out type**.
This lead to many, many, many hard to debug situations when someone
forgot a `const` in their lambda argument types, and many cases of
people taking zero arguments in their lambdas to ignore them.
This commit reworks the Function interface to not include any such
surprising behaviour, if your function instance is not callable with
the declared argument set of the Function, it can simply not be
assigned to that Function instance, end of story.
2021-06-06 00:27:30 +04:30
..
CMakeLists.txt TextEditor: Add support for SQL highlighting 2021-05-09 09:39:05 +02:00
FileArgument.cpp TextEditor: Minor cleanups in the FileArgument class 2021-05-06 12:35:25 +02:00
FileArgument.h TextEditor: Minor cleanups in the FileArgument class 2021-05-06 12:35:25 +02:00
main.cpp Userland: Tighten a *lot* of pledges! :^) 2021-05-13 23:28:40 +02:00
MainWidget.cpp AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
MainWidget.h TextEditor: Don't launch a WebContent process until it's needed 2021-05-20 22:12:42 +02:00
TextEditorWindow.gml TextEditor: Don't launch a WebContent process until it's needed 2021-05-20 22:12:42 +02:00