ladybird/Userland/Games
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
..
2048 2048: Display action status tips in status bar 2021-05-18 16:48:39 +02:00
Breakout Revert "Userland: static vs non-static constexpr variables" 2021-05-21 10:30:52 +01:00
Chess LibChess: Change cursor style when hovering or dragging valid piece 2021-06-02 11:18:40 +02:00
GameOfLife GameOfLife: Add choosable patterns 2021-05-22 09:54:58 +01:00
Hearts AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
Minesweeper Userland: Tighten a *lot* of pledges! :^) 2021-05-13 23:28:40 +02:00
Pong Revert "Userland: static vs non-static constexpr variables" 2021-05-21 10:30:52 +01:00
Snake LibGfx: Remove Gfx::FontDatabase::default_bold_fixed_width_font() 2021-05-20 20:55:29 +02:00
Solitaire Solitaire+LibCards: Draw card stacks with rounded corners 2021-06-04 19:11:45 +02:00
CMakeLists.txt Games: Add Hearts 2021-05-21 23:38:18 +02:00