[Nickle] Bug: reference addition bounds check on arrays

nickle at po8.org nickle at po8.org
Sat Jan 15 20:36:39 PST 2005


Naw, leave them alone.  It's fine.

	Bart

In message <E1CpxAJ-0007XP-TN at evo.keithp.com> you wrote:
> --===============1046451306==
> Content-Type: multipart/signed; boundary="==_Exmh_1352835031P";
> 	micalg=pgp-sha1; protocol="application/pgp-signature"
> Content-Transfer-Encoding: 7bit
> 
> --==_Exmh_1352835031P
> Content-Type: text/plain; charset=utf-8
> 
> 
> Around 13 o'clock on Jan 15, "Bart Massey" wrote:
> 
> > Trying to get the subarray starting at k.  Maybe I can't do that.
> 
> You made me get rid of array indexing on pointers...
> 
> You can, however, do:
> 
> > int[10] a = { [i] = i };
> > *int ap = &a[3];
> > ap
> &3
> > *(ap + 1)
> 4
> >
> 
> If you want re-indexable arrays, there's a bit of work to do.  I don't 
> think it's impossible...
> 
> -keith
> 
> 
> 
> --==_Exmh_1352835031P
> Content-Type: application/pgp-signature
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.5 (GNU/Linux)
> Comment: Exmh version 2.3.1 11/28/2001
> 
> iD8DBQFB6aRzQp8BWwlsTdMRAoJVAJ41pqCc6h0qtB54TrAnx85/hNy2SgCgmz25
> DstAxxGwnGZIoTPgvIEpT/o=
> =L1CB
> -----END PGP SIGNATURE-----
> 
> --==_Exmh_1352835031P--
> 
> 
> --===============1046451306==
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
> 
> _______________________________________________
> Nickle mailing list
> Nickle at nickle.org
> http://nickle.org/mailman/listinfo/nickle
> 
> --===============1046451306==--
> 



More information about the Nickle mailing list