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:
Tels
Date:
April 10, 2007 11:54
Subject:
Re: Proposed changes and to regular expression interfaces in core
Message ID:
200704102055.37687@bloodgate.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Moin,

On Tuesday 10 April 2007 18:48:37 Ævar Arnfjörð Bjarmason wrote:
> On 4/10/07, Tels <nospam-abuse@bloodgate.com> wrote:
> > > Actually negative indices are used currently so it couldn't be STRLEN
> > > without some larger changes.
> >
> > Doesn't Perl have I64? if not, it's about time we add it, since I32
> > starts increasingly to become a limit...
>
> It's probably much better to refactor those places where I32 gets used
> for an offset to not use negative integers. STRLEN is a much better
> type to use since it ends up being size_t.

But what if you need negative integers, too? Expression signed numbers in an 
unsigned type like size_t is quite awkward.

All the best,

Tels

- -- 
 Signed on Tue Apr 10 20:54:41 2007 with key 0x93B84C15.
 View my photo gallery: http://bloodgate.com/photos
 PGP key on http://bloodgate.com/tels.asc or per email.

 "Duke Nukem Forever will come out before Unreal 2."

  -- George Broussard, 2001 (http://tinyurl.com/6m8nh)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iQEVAwUBRhv5yXcLPEOTuEwVAQJYQQf+PHDvMG/fYNkTkE4NaAU3DDLg1dedQhZ3
WlU/1zn1iMDljDAFBifRr6/qbtfittwMtUR9wilEcfuzYSdHUJRRXz8BufNJfoyH
qKoE50ryX10TOpiqrDe0h9xQpl625h1OXlpPjKA4gNGqwnMDL62LTUx6l/8YXy/r
CRYkkg0OPfslp4Vjpa7c6010Rl/mzGY/5q+3vohx5PZxiQvExNPHgxbAhstEpexS
HBRPj6sjC2dhH/5tm1z3/cFfZJQplJ29O7TxI118OwTEfHS/34f7O8eD4bCiuQXt
uyiJJ60zyw05YmKhAj9Hctb2bjWxvKWElwvqs6+uj5zja4m8JmGyLA==
=2MDD
-----END PGP SIGNATURE-----

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