[Libre-soc-bugs] [Bug 1094] insndb instruction database visitor-walker is needed

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Mon Jun 19 21:42:49 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=1094

--- Comment #193 from Dmitry Selyutin <ghostmansd at gmail.com> ---
(In reply to Jacob Lifshay from comment #190)
> (In reply to Dmitry Selyutin from comment #187)
> > I think sets and frozensets paths are simply hash(item). That is:
> 
> I strongly disagree because hash(item) can't be used to select the proper
> item -- both because it's a pain to access a set entry via hash and because
> the hash may not be unique -- you can have a set {a, b} with len == 2 and
> hash(a) == hash(b)

My point is that the item itself cannot be used either. You simply don't have
syntax where set can be accessed by an index. cf. above about different repr
for different path types so that we can handle .attr vs [index] vs
dict_item(a,b) vs ??? (no idea how can we express sets).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list