From gwking at metabang.com Thu Sep 18 14:38:28 2008 From: gwking at metabang.com (Gary King) Date: Thu, 18 Sep 2008 10:38:28 -0400 Subject: [cl-containers-devel] ECL patch Message-ID: Hi Daniel, Thanks for the patch; I should be able to get to it later today. -- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM From whalliburton at gmail.com Thu Sep 18 15:13:17 2008 From: whalliburton at gmail.com (William Halliburton) Date: Thu, 18 Sep 2008 10:13:17 -0500 Subject: [cl-containers-devel] first-element != first-item Message-ID: <4e7bd29e0809180813s27acd63bk4af3806195797bb@mail.gmail.com> Minor bug report: first-element should be (element (first-item foo)), yes? Currently it is the same as first-item (at least for dlists). Thanks much, WIll -------------- next part -------------- An HTML attachment was scrubbed... URL: From gwking at metabang.com Sun Sep 21 00:04:22 2008 From: gwking at metabang.com (Gary King) Date: Sat, 20 Sep 2008 20:04:22 -0400 Subject: [cl-containers-devel] first-element != first-item In-Reply-To: <4e7bd29e0809180813s27acd63bk4af3806195797bb@mail.gmail.com> References: <4e7bd29e0809180813s27acd63bk4af3806195797bb@mail.gmail.com> Message-ID: <4FD12108-6E38-4441-BD42-51946A392983@metabang.com> Absolutely right. I'll get a fix out soon. I haven't looked yet, but it seems to me that there shouldn't even be a specialized method on dlist-containers... this should just be the standard definition... thanks, On Sep 18, 2008, at 11:13 AM, William Halliburton wrote: > > Minor bug report: > > first-element should be (element (first-item foo)), yes? > > Currently it is the same as first-item (at least for dlists). > > Thanks much, > WIll > _______________________________________________ > cl-containers-devel mailing list > cl-containers-devel at common-lisp.net > http://common-lisp.net/cgi-bin/mailman/listinfo/cl-containers-devel -- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM From wpoosanguansit at yahoo.com Sat Sep 27 15:35:41 2008 From: wpoosanguansit at yahoo.com (Watt Poosanguansit) Date: Sat, 27 Sep 2008 08:35:41 -0700 (PDT) Subject: [cl-containers-devel] Error loading the cl-containers in REPL Message-ID: <767317.12180.qm@web55507.mail.re4.yahoo.com> I am new to cl-containers. I using Clisp on Linux. I am able load cl-containers through asdf without any error. But when I issue (setf *new-hash* (cl-containers:make-container 'associative-container :test #'equal)) in REPL, I get this error FIND-CLASS: ASSOCIATIVE-ARRAY does not name a class [Condition of SIMPLE ERROR]. When I change the package (in-package :containers), it works fine. So I am just not sure what else that was missing in how I load the classes. Thanks for your help. Watt P. From gwking at metabang.com Sat Sep 27 20:27:52 2008 From: gwking at metabang.com (Gary King) Date: Sat, 27 Sep 2008 16:27:52 -0400 Subject: [cl-containers-devel] Error loading the cl-containers in REPL In-Reply-To: <767317.12180.qm@web55507.mail.re4.yahoo.com> References: <767317.12180.qm@web55507.mail.re4.yahoo.com> Message-ID: <56B0EF34-8DA6-4B8C-B4BC-E5A4AAFF55FD@metabang.com> Hi Watt, Thanks for your interest in cl-containers. > > I am new to cl-containers. I using Clisp on Linux. I am able load > cl-containers through asdf without any error. Good! > But when I issue (setf *new-hash* (cl-containers:make-container > 'associative-container :test #'equal)) in REPL, I get this error > FIND-CLASS: ASSOCIATIVE-ARRAY does not name a class [Condition of > SIMPLE ERROR]. I'm guessing that the error was closer to: >> Error: No class named: associative-container. >> [condition type: program-error] This happens because #'make-container is almost exactly like #'make- instance. It's first argument is the name of the class to make (*). You asked for the class 'associative-container but you want to ask for 'cl-containers:associative-container. > When I change the package (in-package :containers), it works fine. > So I am just not sure what else that was missing in how I load the > classes. Right. If you're in the cl-containers package (or if you've used the package) then the above will work as will: >> (setf *new-hash* (make-container 'associative-container :test >> #'equal)) > Thanks for your help. My pleasure. Let me know how things work for you. I'm sure that there is some code rot in cl-containers and I'd love to keep it cleaned up and running. Thanks, -- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM