[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] IdentityDictionary possible bug: does not behave correctly after a readArchive WAS Re: [sc-users] Parameter space - saving to disk
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-users] IdentityDictionary possible bug: does not behave correctly after a readArchive WAS Re: [sc-users] Parameter space - saving to disk
- From: James Harkins <jamshark70@xxxxxxxxx>
- Date: Thu, 14 May 2009 17:10:02 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=yiaA8mdeLY4t47z5YkHrWNQjWugBCGtYvoWOVF+3HiI=; b=qz+T5M8rfUF6AZ7XbujA7tGg35y0AOkAYNdvZlGSspUrxf0Jw+nRxSLVK2ITGqfmOy MHdnSlcz1O39XS5weNq/BjpEubCvyah8iv8QuJWVdbf4qetx/mEY4QcoUf68Nwdj2mQG tR6KnGZV/AcZcRlGyednh0x2TeggCL7vFGzMo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; b=M7Dpwu4Wf/ih7lSph9re7jpBlINNDsimVA4akG0s/mpQbXjSNn0mUiKmGmeqQej7iR p1zf0Ym8JrquRlPlpCYWDKxYzjI3fHof4yMkT5kbtmRcQCiUXSMIZD4M0RIN4kPjZeXY 8BWMDUB54JR2pnJi6UeJmaJJS9umTXd4nd1ag=
- In-reply-to: <4A0C59DA.2030102@xxxxxxxxxxxxxxxxx>
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- References: <49F9FFDE.7070707@xxxxxxxxxxxxxxxxx> <272CCAA7-C862-4868-A014-7BED94247FC3@xxxxxxxxx> <4A0C59DA.2030102@xxxxxxxxxxxxxxxxx>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
Not a bug. IdentityDictionaries should use only atomic types as keys.
Point is not an atomic type. Therefore you should be using Dictionary
instead.
hjh
On Thu, May 14, 2009 at 1:50 PM, Miguel Negrao
<miguel.negrao@xxxxxxxxxxxxxxxxx> wrote:
> With some investigations I concluded that IdentityDictionary's
> cannot be loaded with a readArchive.
>
> z = Point(0.5,0.5)
> y = Point(0.2,0.5)
> a = IdentityDictionary.new;
> a.put(z,"the point");
> a.put(y,"another point")
> a.writeArchive("/test")
> b = Object.readArchive("/test")
> b[b.keys.asArray[0]]
>
> this gives nil. This seems to me to be a bug, and I wonder if it could
> be fixed (devs ?). MultiLevelIdentityDictionary suffers from the same
> problem and that's what is keeping ParameterSpace from being saved
> correctly.
--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net
"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/