bug-make
[Top][All Lists]
Advanced

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

Re: math expressions (was: Re: Tail call elimination)


From: Edward Welbourne
Subject: Re: math expressions (was: Re: Tail call elimination)
Date: Mon, 25 May 2020 10:10:34 +0000

>>> Bit Manipulation:
>>> ----------------------
>>> * and
>>> * or
>>> * xor
>>> * complement
>>> * left shift
>>> * right shift
>>
>> Maybe.  I have a hard time coming up with uses for these, other than
>> possibly the shift operators (but multiplication/division can be used
>> instead).

Pete Dietl (20 May 2020 18:21)
> Yeah I was thinking the use case could be a little obscure,
> but maybe for some sort of version parsing where bits
> are strangely encoded.
>
> But again I'd say that it's pretty easy to implement.


>> Again, the questions in my email yesterday need to be addressed.

> I totally missed that email somehow. I'll address it in another email.

>> Mult-base support: should we support only base 10 integer constants in
>> expressions, or also hex/octal constants?

> I vote for decimal, hex, and binary.
> Octal if you really want it.

A case for octal and bitwise and/or is that they're what you need to
manipulate chmod permissions.  Of course, that'd also require being able
to *expand* the resulting number as octal ...

        Eddy.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]