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

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sat Jun 10 00:55:19 BST 2023


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

--- Comment #81 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---

   class String(Node, str):
        pass

class PPCRecord(Dataclass):
-    comment2: str = ''
+    comment2: String = String()

i really don't think this is a good route to go down (converting _all_
types to inherit from Node): indirectly it implies ultimately that
SelectableInt and FieldSelectableInt must derive from Node and that
is really not a good idea.

(plus, bool cannot be inherited, and we need it).

it's... if the basic types work (str, int, bool) and do the same
job, then creating a class to do the same job... yyeah :)

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


More information about the libre-soc-bugs mailing list