Re: [PATCH v2 4/3] Somewhat better error for std.put("{w=?}", "foo")
[Thread Prev] | [Thread Next]
- Subject: Re: [PATCH v2 4/3] Somewhat better error for std.put("{w=?}", "foo")
- From: ori@xxxxxxxxxxxxxx
- Reply-to: myrddin-dev@xxxxxxxxxxxxxx
- Date: Sun, 1 Dec 2019 17:04:14 -0800
- To: sgilles@xxxxxxx, myrddin-dev@xxxxxxxxxxxxxx
> ---
> This should be the last for this series, it's been put through light
> local use without any other fires.
>
> lib/std/fmt.myr | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/lib/std/fmt.myr b/lib/std/fmt.myr
> index 41785244..4a70c210 100644
> --- a/lib/std/fmt.myr
> +++ b/lib/std/fmt.myr
> @@ -593,6 +593,10 @@ const getint = {s, msg
> }
>
> const pullint = {ap, msg
> + if ap.tc.nelt < 1
> + die("expected argument where none was provided")
> + ;;
> +
> match typedesc(vatype(ap))
> | `Tyint8:
> var val : int8 = vanext(ap)
> --
> 2.24.0
Alright, now that I'm back, I'll be taking a look at these
over the next couple of days. Thanks!
- Prev by Date: [PATCH v2 4/3] Somewhat better error for std.put("{w=?}", "foo")
- Next by Date: [PATCH v2] Force correct sign for intermediate steps of bigmul
- Previous by thread: [PATCH v2 4/3] Somewhat better error for std.put("{w=?}", "foo")
- Next by thread: [PATCH v2] Force correct sign for intermediate steps of bigmul
- Index(es):