[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: math expressions (was: Re: Tail call elimination)
From: |
Pete Dietl |
Subject: |
Re: math expressions (was: Re: Tail call elimination) |
Date: |
Mon, 25 May 2020 16:45:20 -0500 |
`long long` was not introduced until c99, neither was `stdint.h`, but
perhaps gnulib can help us out here.
On Mon, May 25, 2020 at 3:44 PM Pete Dietl <address@hidden> wrote:
>
> > I was not even considering specifying the base of the the resulting
> > expansion. I was assuming it would always be base 10. I don't have
> > any good way to specify the output form.
> >
> > I was only considering the parsing of input (constant) values: whether
> > we wanted to support 0xfff, 0o777, 0b111 as well as base 10. I don't
> > want to support "traditional" octal values that start with plain 0... I
> > believe that's always been a bad idea and it's especially bad in the
> > context of makefiles where values are all strings right up until the
> > moment they're parsed.
>
> I definitely agree with 0x 0o 0b.
>
> As for converting between bases, that could always be a separate
> function like `$(convert-base number,radix)` where radix is one of: 2,
> 8, 10, or 16
- Re: math expressions (was: Re: Tail call elimination), (continued)
- Re: math expressions (was: Re: Tail call elimination), Sam Kendall, 2020/05/25
- Re: math expressions (was: Re: Tail call elimination), Edward Welbourne, 2020/05/25
- Re: math expressions (was: Re: Tail call elimination), Pete Dietl, 2020/05/25
- Re: math expressions (was: Re: Tail call elimination), Tim Murphy, 2020/05/25
- Re: math expressions (was: Re: Tail call elimination), Paul Smith, 2020/05/25
- Re: math expressions (was: Re: Tail call elimination), Pete Dietl, 2020/05/25
- Re: math expressions (was: Re: Tail call elimination), Paul Smith, 2020/05/25
- Re: math expressions (was: Re: Tail call elimination), Pete Dietl, 2020/05/25
- Re: math expressions (was: Re: Tail call elimination), Paul Smith, 2020/05/25
- Re: math expressions (was: Re: Tail call elimination), Pete Dietl, 2020/05/25
- Re: math expressions (was: Re: Tail call elimination),
Pete Dietl <=
- Re: math expressions (was: Re: Tail call elimination), Paul Smith, 2020/05/26
- Re: math expressions (was: Re: Tail call elimination), Pete Dietl, 2020/05/27
- Re: math expressions (was: Re: Tail call elimination), Pete Dietl, 2020/05/28
- Re: math expressions (was: Re: Tail call elimination), Jouke Witteveen, 2020/05/28
- Re: math expressions (was: Re: Tail call elimination), Paul Smith, 2020/05/28
- Re: math expressions (was: Re: Tail call elimination), Pete Dietl, 2020/05/28
- Re: math expressions (was: Re: Tail call elimination), Tim Murphy, 2020/05/28
- Re: math expressions (was: Re: Tail call elimination), Edward Welbourne, 2020/05/29
- Re: math expressions (was: Re: Tail call elimination), Paul Smith, 2020/05/28
- Re: math expressions (was: Re: Tail call elimination), Paul Smith, 2020/05/28