Skip to content

Commit

Permalink
Allow users to use MathNotation
Browse files Browse the repository at this point in the history
MachineArithmetic-MachineArithmetic is the highest level within
MachineArithmetic that can work without MathNotation.  Refinements
and above (Sprite etc) definitely use it all over the place.
  • Loading branch information
shingarov committed Oct 13, 2023
1 parent ff773e6 commit 9bf880f
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions pharo/check-deps.st
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ cycleDetector cycles do:[:cycle|
i) PreSmalltalks has no dependencies within MA except 'PreSmalltalks-Pharo'
ii) MachineArithmetic has no dependencies within MA except 'PreSmalltalks' and its
dependencies
iii) Nothing depends on MachineArithmetic-MathNotation except its tests.
"
depChecker := DADependencyChecker new.
visited := Set new.
Expand All @@ -46,19 +45,6 @@ unwanted notEmpty ifTrue:[
Transcript show: 'ERROR: Unwanted dependencies of MachineArithmetic: '; show: unwanted printString; cr.
].

"iii)"
packages do:[:package |
(package beginsWith: 'MachineArithmetic-MathNotation') ifFalse:[
| deps |
deps := packages & (depChecker dependenciesOf: package).
Transcript show: package -> deps; cr.
(deps includes: 'MachineArithmetic-MathNotation') ifTrue:[
error := true.
Transcript show: 'ERROR: Unwanted dependency of ', package , ': MachineArithmetic-MathNotation'; cr.
].
].
].


"
4. Show help and exit (with proper error code)
Expand All @@ -77,4 +63,4 @@ ERROR: Some package(s) has dependency issues, see ERROR: messages above!!
'.
Smalltalk exit: 1.
].
Smalltalk exit: 0
Smalltalk exit: 0

0 comments on commit 9bf880f

Please sign in to comment.