Eigenstate: myrddin-dev mailing list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 4/3] Somewhat better error for std.put("{w=?}", "foo")


> ---
> 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!