[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: unpack behaviour in 5.1
- From: Finn Wilcox <finnw@...>
- Date: Mon, 01 Jul 2013 12:15:17 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 01/07/2013 12:10, Mark Melling wrote:
> Hi,
>
> At least from my perspective unpack seems to behave strangely when
> dealing with nils - as you can see from the output below.
>
> Is this expected behaviour?
>
Yes.
> How can I get unpack({nil,2,nil}) to return nil,2?
print(unpack({nil,2,nil},1,2))
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.18 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJR0WTFAAoJEHp3pOlF38H/UFIH+wbNY5F4DkTeq5oPyI+yrL0R
PdqWtyEb2Q4gKFwryAKLnkPWCdWsxX9Gvboz2VZuW5kHeQWKWtZrJvW4xKdqFlT5
onpV1U86q1j6aPDigwgdioEYRx0nES7qI8dHkA3iPH+48Kam33pUPd+v12L1j7WH
8gkiIKd+ss8dtifn7oc+8aNAcqOxYURIVz10Bx4rHi5XUrwTkWQ/nVb8oiPDIUgB
SVLwaetMm3+5sSTyH8HqFHIUP05YJjvcL3HRhp+03VFStgTgbjSltJJJ3bjrdozU
Mb6L2Wdv1zNgMJuliv5bxLRdWZBWMMLnWTRuO1f/vWsYCYXOLIfdDFv5i1GCBK8=
=H0bT
-----END PGP SIGNATURE-----