Message from discussion
Some code to gnaw on
Received: by 10.229.188.67 with SMTP id cz3mr51811qcb.14.1294986265707;
Thu, 13 Jan 2011 22:24:25 -0800 (PST)
X-BeenThere: lua-table-semantics@googlegroups.com
Received: by 10.229.195.134 with SMTP id ec6ls852936qcb.2.p; Thu, 13 Jan 2011
22:24:24 -0800 (PST)
Received: by 10.229.34.13 with SMTP id j13mr49052qcd.24.1294986264595;
Thu, 13 Jan 2011 22:24:24 -0800 (PST)
Received: by 10.229.34.13 with SMTP id j13mr49051qcd.24.1294986264530;
Thu, 13 Jan 2011 22:24:24 -0800 (PST)
Return-Path: <steve.j.dono...@gmail.com>
Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.216.181])
by gmr-mx.google.com with ESMTPS id s6si192588qco.13.2011.01.13.22.24.23
(version=TLSv1/SSLv3 cipher=RC4-MD5);
Thu, 13 Jan 2011 22:24:23 -0800 (PST)
Received-SPF: pass (google.com: domain of steve.j.dono...@gmail.com designates 209.85.216.181 as permitted sender) client-ip=209.85.216.181;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of steve.j.dono...@gmail.com designates 209.85.216.181 as permitted sender) smtp.mail=steve.j.dono...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by qyk12 with SMTP id 12so3022360qyk.19
for <lua-table-semantics@googlegroups.com>; Thu, 13 Jan 2011 22:24:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type:content-transfer-encoding;
bh=bTTBxmgcDl/Nydhbg5DuDa+8RrMaRlAL1GHKYu4x2gc=;
b=ZJcGcAVl2qzxdIIhQbt+xD/P+fWDnR+YNijxGVEHF39If+Q9wJml8fAeaJWPhsQB5s
0OFZX8M21FhwGGyUOWxDqy6bCHowIAiBDV3we9DnNiMFEgKj0pYu8S30FrPSgNOMtTvS
CDU07NLnpyAz5ix0GI+VKlR9EiKbaoWIBWMzk=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type:content-transfer-encoding;
b=haN04gSR6Pb49gRmECEVfN8VWZp6zT/RInaj2G3dPWHkEfUbaJEjEAiTmmfZA5aL/Z
r/xv10JgYn+3+Vg2Wb0RiJD4zUyshBS73iL26ZF0GG7UksMn2V389RDAjhBpirpfCaIO
aAFwCCFK6oY7tFml7fI+wXDM4BcPLdNo2ybVA=
MIME-Version: 1.0
Received: by 10.229.241.69 with SMTP id ld5mr343215qcb.189.1294986263163; Thu,
13 Jan 2011 22:24:23 -0800 (PST)
Received: by 10.229.81.136 with HTTP; Thu, 13 Jan 2011 22:24:23 -0800 (PST)
In-Reply-To: <20110113194254.GA6680@rondloper>
References: <6ece50c9-fb4f-41b4-93fc-817ac2196...@f35g2000vbl.googlegroups.com>
<AANLkTi=QBc-+DdR-SUHCPP+6zN0yU4+kQuT=-A5hn...@mail.gmail.com>
<E1C0A7AC-1317-4EE1-81BA-568CDE5BD...@gmail.com>
<20110113194254.GA6680@rondloper>
Date: Fri, 14 Jan 2011 08:24:23 +0200
Message-ID: <AANLkTi=dLbZ4pskRs1frrSqBVLVZbKt9FJkO-8ca8...@mail.gmail.com>
Subject: Re: Some code to gnaw on
From: steve donovan <steve.j.dono...@gmail.com>
To: lua-table-semantics@googlegroups.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
On Thu, Jan 13, 2011 at 9:42 PM, Dirk Laurie <d...@sun.ac.za> wrote:
> I append a first version of vanity.lua. =A0At this stage, I've implemente=
d
> only 'list'.
Oops, attachment didn't get through. Since Google Groups doesn't have
pages anymore, we need a scratchpad.
Any suggestions?
I've updated my 'safe_array' (for which, read 'safe_list') which goes
through some contortions to avoid accidental nil insertion, so that
there are explicit append() and insert() methods; there should also be
a remove() method. Nice example of the proxy pattern, probably not
very efficient, but I'll work up a benchmark.
http://snippets.luacode.org/snippets/Safe_Array_100
steve d.