Nicolas Cellier uploaded a new version of Files to project The Trunk:
http://source.squeak.org/trunk/Files-nice.170.mcz
==================== Summary ====================
Name: Files-nice.170
Author: nice
Time: 26 April 2017, 11:01:48.184504 pm
UUID: 16f1903f-4a56-4f35-b737-dbb16a9022ae
Ancestors: Files-ul.169
Classify a few 'as yet unclassified' methods
=============== Diff against Files-ul.169 ===============
Item was changed:
+ ----- Method: DosFileDirectory>>checkName:fixErrors: (in category 'file name utilities') -----
- ----- Method: DosFileDirectory>>checkName:fixErrors: (in category 'as yet unclassified') -----
checkName: aFileName fixErrors: fixing
"Check if the file name contains any invalid characters"
| fName badChars hasBadChars |
fName := super checkName: aFileName fixErrors: fixing.
badChars := #( $: $< $> $| $/ $\ $? $* $") asSet.
hasBadChars := fName includesAnyOf: badChars.
(hasBadChars and:[fixing not]) ifTrue:[^self error:'Invalid file name'].
hasBadChars ifFalse:[^ fName].
^ fName collect:
[:char | (badChars includes: char)
ifTrue:[$#]
ifFalse:[char]]!
Item was changed:
+ ----- Method: DosFileDirectory>>setPathName: (in category 'private') -----
- ----- Method: DosFileDirectory>>setPathName: (in category 'as yet unclassified') -----
setPathName: pathString
"Ensure pathString is absolute - relative directories aren't supported on all platforms."
(pathString isEmpty
or: [pathString first = $\
or: [pathString size >= 2 and: [pathString second = $: and: [pathString first isLetter]]]])
ifTrue: [^ super setPathName: pathString].
self error: 'Fully qualified path expected'!
Item was changed:
+ ----- Method: InvalidDirectoryError>>defaultAction (in category 'handling') -----
- ----- Method: InvalidDirectoryError>>defaultAction (in category 'exceptionDescription') -----
defaultAction
"Return an empty list as the default action of signaling the occurance of an invalid directory."
^#()!
Item was changed:
+ ----- Method: MacFileDirectory>>fullNameFor: (in category 'file name utilities') -----
- ----- Method: MacFileDirectory>>fullNameFor: (in category 'as yet unclassified') -----
fullNameFor: fileName
"Return a corrected, fully-qualified name for the given file name. If the given name is already a full path (i.e., it contains a delimiter character), assume it is already a fully-qualified name. Otherwise, prefix it with the path to this directory. In either case, correct the local part of the file name."
"Details: Note that path relative to a directory, such as '../../foo' are disallowed by this algorithm. Also note that this method is tolerent of a nil argument -- is simply returns nil in this case."
"Fix by hmm: for a file in the root directory of a volume on MacOS, the filePath (name of the directory) is not recognizable as an absolute path anymore (it has no delimiters). Therefore, the original fileName is tested for absoluteness, and the filePath is only made absolute if the original fileName was not absolute"
| correctedLocalName prefix |
fileName isEmptyOrNil ifTrue: [^ fileName].
DirectoryClass splitName: fileName to:
[:filePath :localName |
correctedLocalName := localName isEmpty
ifFalse: [self checkName: localName fixErrors: true]
ifTrue: [localName].
prefix := (DirectoryClass isAbsolute: fileName)
ifTrue: [filePath]
ifFalse: [self fullPathFor: filePath]].
prefix isEmpty
ifTrue: [^correctedLocalName].
prefix last = self pathNameDelimiter
ifTrue:[^ prefix, correctedLocalName]
ifFalse:[^ prefix, self slash, correctedLocalName]!
Levente Uzonyi uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ul.751.mcz
==================== Summary ====================
Name: Collections-ul.751
Author: ul
Time: 25 April 2017, 6:55:32.620027 pm
UUID: e526dee8-c2dc-4f9e-8b5d-96cd22f1e24b
Ancestors: Collections-ul.750
- removed implementations of #clone
=============== Diff against Collections-ul.750 ===============
Item was removed:
- ----- Method: Character>>clone (in category 'copying') -----
- clone
- "Answer the receiver, because Characters are unique."
- ^self!
Item was removed:
- ----- Method: Symbol>>clone (in category 'copying') -----
- clone
- "Answer with the receiver, because Symbols are unique."!
Levente Uzonyi uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-ul.759.mcz
==================== Summary ====================
Name: Tools-ul.759
Author: ul
Time: 25 April 2017, 6:41:37.45844 pm
UUID: 826e191c-a2cc-4f12-b024-1001e76d745c
Ancestors: Tools-ul.758
- removed reference to #clone from MethodFinder
=============== Diff against Tools-ul.758 ===============
Item was changed:
----- Method: MethodFinder>>initialize (in category 'initialize') -----
(excessive size, no diff calculated)
Levente Uzonyi uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-ul.328.mcz
==================== Summary ====================
Name: KernelTests-ul.328
Author: ul
Time: 25 April 2017, 6:40:43.285455 pm
UUID: f80023f1-7ae7-443e-a43f-d0ca5d867f2d
Ancestors: KernelTests-eem.327
- removed #testClone, since #clone had been deprecated
=============== Diff against KernelTests-eem.327 ===============
Item was removed:
- ----- Method: UndefinedObjectTest>>testClone (in category 'tests - copying') -----
- testClone
-
- self assert: ( nil clone = nil).!
Levente Uzonyi uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-ul.1099.mcz
==================== Summary ====================
Name: Kernel-ul.1099
Author: ul
Time: 25 April 2017, 6:40:04.569495 pm
UUID: d06b7b82-b7b0-4896-ab30-7a5f85de7427
Ancestors: Kernel-ul.1098
- deprecated Object >> #clone
- removed #clone from subclasses
=============== Diff against Kernel-ul.1098 ===============
Item was removed:
- ----- Method: Boolean>>clone (in category 'copying') -----
- clone
- "Receiver has two concrete subclasses, True and False.
- Only one instance of each should be made, so return self."!
Item was removed:
- ----- Method: Object>>clone (in category 'copying') -----
- clone
- "Answer a shallow copy of the receiver."
- <primitive: 148 error: ec>
- | class newObject |
- ec == #'insufficient object memory' ifFalse:
- [^self primitiveFailed].
- "If the primitive fails due to insufficient memory, instantiate via basicNew: to invoke
- the garbage collector before retrying, and use copyFrom: to copy state."
- newObject := (class := self class) isVariable
- ifTrue:
- [class isCompiledMethodClass
- ifTrue:
- [class newMethod: self basicSize - self initialPC + 1 header: self header]
- ifFalse:
- [class basicNew: self basicSize]]
- ifFalse:
- [class basicNew].
- ^newObject copyFrom: self!
Item was removed:
- ----- Method: SmallFloat64>>clone (in category 'copying') -----
- clone
- "Answer the receiver, because SmallFloat64s are unique."
- ^self!
Item was removed:
- ----- Method: SmallInteger>>clone (in category 'copying') -----
- clone
- "Answer the receiver, because SmallIntegers are unique."
- ^self!
Item was removed:
- ----- Method: UndefinedObject>>clone (in category 'copying') -----
- clone
- "Only one instance of UndefinedObject should ever be made, so answer
- with self."!