Hi,
Ich nehme an, ich hab beim Portieren von SmallWiki auf
Squeak einen
Bug gefunden. Es existiert keine Message 'notFound' in VW7.1. Ich
vermute du meinst 'notFoundSignal'.
Folder>>remove: aStructure
aStructure parent: nil.
^(children includes: aStructure)
ifTrue: [ children remove: aStructure ]
ifFalse: [ self class notFound signal ]
jup, this is obviously wrong. I hope that the following code is working
without additional changes in Squeak:
Folder>>remove: aStructure
aStructure parent: nil.
^(children includes: aStructure)
ifTrue: [ children remove: aStructure ]
ifFalse: [ self class notFoundSignal signal ]
Even-tough I tried to make my code as portable as possible, there were
quite a lot of VW specific message-calls that John Brant pointed out.
If you find some more, please report them so that porting of new
versions of SmallWiki will be only a matter of a few clicks ...
What about some SmallLint rules to detect unportable non-ansi code?
Mal sehen, ob ich in den nächsten Tagen noch weitere
Sachen finde :)
Great, I am looking forward hearing from you.
Cheers,
Lukas
--
Lukas Renggli
http://renggli.freezope.org