AnObsoleteDrGeoScriptXXXX error
Bug #1433529 reported by
hilaire
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Dr. Geo |
Fix Released
|
High
|
Unassigned |
Bug Description
Sktech containing several instance of the same script produce AnObsoleteDrGeo
Solution: do not recompile a script class when it is already load & compiled in the Dr. Geo.
Changed in drgeo: | |
importance: | Undecided → High |
Changed in drgeo: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Modify the method below:
DrGeoXml> >parseScript: drgeoNode
"First do one pass to compile all the Smalltalk source code script, do not recompile duplicate ones"
drgeoNode elementsDo: [: node |
(node tag = #value and: [(node attributeAt: #type) = #script]) ifTrue: [
[(node attributeAt: #class) asClass]
on: NotFound
do: [CodeImporter evaluateString: (node contentStringAt: #code)]]]