Mark Spanbroek
3dcf21491d
without with error variable works for any Result type
2024-05-29 12:45:40 +02:00
Mark Spanbroek
57e467b8b0
Fix: without should work when $ has side effects
...
It's ok to use unsafeError in bindFailed, because we've
already checked that the result contains an error.
2024-03-10 12:13:25 +01:00
Mark Spanbroek
6ef525cfe2
Reference types are handled by without statement with error
2024-01-09 16:52:39 +01:00
Mark Spanbroek
d463d491cc
Handle bind (=?) errors in without statements differently
...
Keeps track of the current error variable at compile time,
instead of using a pointer to the error variable at runtime.
Employs a trick with an unused type parameter to ensure that
invocations of the bindFailed() macro are expanded after
captureBindError() is expanded.
2024-01-09 16:45:32 +01:00
Mark Spanbroek
af4f194597
Fix tests for Nim < 2.0
2023-08-30 11:02:37 +02:00
Mark Spanbroek
5c8d422ac8
fix error binding in without statement on multiple threads
2023-08-30 11:02:37 +02:00
Mark Spanbroek
3bce3088a7
Use root configuration when running tests
2023-07-03 11:16:56 +02:00
Mark Spanbroek
0d7ce8efde
Provide conversion to string $ for Results
2023-06-26 10:04:02 +02:00
Mark Spanbroek
b18444a6d0
Support renamed 'results' library
2023-06-05 17:26:46 +02:00