[Nickle] Bug: reference addition bounds check on arrays

Bart Massey nickle at po8.org
Sat Jan 15 13:40:28 PST 2005


Trying to get the subarray starting at k.  Maybe I can't do that.

	Bart

In message <E1Cpvau-0007Rv-EJ at evo.keithp.com> you wrote:
> --===============0971340670==
> Content-Type: multipart/signed; boundary="==_Exmh_1310222828P";
> 	micalg=pgp-sha1; protocol="application/pgp-signature"
> Content-Transfer-Encoding: 7bit
> 
> --==_Exmh_1310222828P
> Content-Type: text/plain; charset=utf-8
> 
> 
> Around 11 o'clock on Jan 15, "Bart Massey" wrote:
> 
> > I *think* this was supposed to work.
> > 
> >     > int[3] a;
> >     > *(int[*]) ar = &a;
> >     > *(int[*]) ar = &a + 1;
> >     Unhandled exception invalid_array_bounds ("Element out of range in reference addition", &(int [3]) {<uninit>,<uninit>, <uninit>}, 1)
> >     <stdin>:3:     *int[*] ar = &a + 1;
> >     >
> 
> Nope, this isn't supposed to work -- you're referencing the array, not an 
> element of the array and the array is in a box with a single element.
> 
> What are you trying to get?
> 
> -keith
> 
> 
> 
> --==_Exmh_1310222828P
> Content-Type: application/pgp-signature
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.5 (GNU/Linux)
> Comment: Exmh version 2.3.1 11/28/2001
> 
> iD8DBQFB6YzcQp8BWwlsTdMRAhMrAKC6lmfjLhk+76C9zj5mG7hncLwGBgCgk4B8
> /Yb1ZTofuPg9OiJcxoMDjp0=
> =gkO0
> -----END PGP SIGNATURE-----
> 
> --==_Exmh_1310222828P--
> 
> 
> --===============0971340670==
> 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
> 
> --===============0971340670==--
> 



More information about the Nickle mailing list