[m-rev.] for review: add builtin 8, 16 and 32 bit integer types -- Part 1

Julien Fischer jfischer at opturion.com
Sat Jul 1 12:22:00 AEST 2017


Hi Michael,

On Saturday, 1 July 2017, Michael Day <mikeday at yeslogic.com> wrote:

> Hi Julien,
>
> - Extends the compiler to recognise 'int8', 'uint8', 'int16', 'uint16',
>> 'int32'
>>    and 'uint32' as builtin types.
>>
>
> Handy!
>
> Will there be syntax for integer literals of these types?


Yes, in fact it already exists in the term parser - it's just not
documented at the moment.  (Fixed size integers must have a suffix that
gives there signedness and size, for example 8u16, 0x13ed_i32 etc.)

Julien.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20170701/29206e0a/attachment.html>


More information about the reviews mailing list