Hi, I've stumbled upon a 7.0 incompatibility with regards to how file names
are treated.
In 6.1, I can use Strings and FileLocators interchangeably to create and
read Zip archives. That's because StandardFileStream does the magic behind
the screnes.
In 7.0, StandardFileStream has been deprecated, and "File
openForReadFileNamed:" is used instead. That method does not handle
FileLocators, so code that uses FileLocators to open Zip archives ceased to
work.

What's the preferred solution? It strikes me as illogical that objects which
were made to reference files can't be used to reference files in these
contexts. However, there may be a conscious design decision behind this
change that's just not obvious to me.

Cheers,
Hans-Martin



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply via email to