ladybird/Userland/Games/Hearts
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 Hearts: Add support for playing more than one hand 2021-05-25 21:05:35 +02:00
Game.cpp AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
Game.h Hearts: Play the first valid card (left-to-right) when pressing space 2021-06-02 23:07:12 +01:00
Hearts.gml Games: Add Hearts 2021-05-21 23:38:18 +02:00
Helpers.h Games: Add Hearts 2021-05-21 23:38:18 +02:00
main.cpp Hearts: Allow player to set their name 2021-05-23 20:43:53 +01:00
Player.cpp Hearts: Fix sorting for pick_low_points_high_value_card 2021-06-01 08:52:08 +02:00
Player.h Hearts: Prefer to pass high value cards 2021-06-01 08:52:08 +02:00
ScoreCard.cpp Hearts: Add support for playing more than one hand 2021-05-25 21:05:35 +02:00
ScoreCard.h Hearts: Add support for playing more than one hand 2021-05-25 21:05:35 +02:00
SettingsDialog.cpp Hearts: Allow player to set their name 2021-05-23 20:43:53 +01:00
SettingsDialog.h Hearts: Allow player to set their name 2021-05-23 20:43:53 +01:00