develooper Front page | perl.perl5.porters | Postings from April 2007

Re: Proposed changes and to regular expression interfaces in core

Thread Previous | Thread Next
From:
Ævar Arnfjörð Bjarmason
Date:
April 10, 2007 12:33
Subject:
Re: Proposed changes and to regular expression interfaces in core
Message ID:
51dd1af80704101233o66a43742w95305157ca83330d@mail.gmail.com
On 4/10/07, Tels <nospam-abuse@bloodgate.com> wrote:
> When working with size_t, you often end up having the need to express -1 as
> it is used for errors. Then you typical use:
>
> 	size_t(-1)
>
> This means you are basically limited to 2**N-1 instead of 2**N/2.

That does sound a bit better than using size_t and having to increment
each offset by one. Since we're reducing the namespace anyway...

> > In any case other parts of the interface present bigger issues, but
> > this is one of the things that would be nice to get right the first
> > time.
>
> Sorry for the confusion, but I meant that as an XS writer, I would also like
> to have a portable way of saying I64. I know about U8, U32 etc, but I am
> not sure if I64 or U64 exist. If not, it would be cool to have them. If
> they already exist, nvm me.

Ah. But that's another issue:)

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About