On 6 November 2013 21:43, <commits(a)source.squeak.org> wrote:
> Chris Muller uploaded a new version of Kernel to project The Trunk:
> http://source.squeak.org/trunk/Kernel-cmm.819.mcz
>
> ==================== Summary ====================
>
> Name: Kernel-cmm.819
> Author: cmm
> Time: 6 November 2013, 3:42:56.929 pm
> UUID: df349ca4-09ec-4a78-b10b-bc2ca823d8cd
> Ancestors: Kernel-nice.818
>
> - Fix #numArgs for MessageSend's whose arguments have not yet been set.
>
> =============== Diff against Kernel-nice.818 ===============
>
> Item was changed:
> ----- Method: MessageSend>>numArgs (in category 'accessing') -----
> numArgs
> + ^ selector numArgs!
> - "Answer the number of arguments in this message"
> -
> - ^arguments size!
Under what conditions would we have a MessageSend without arguments?
We have three proper constructors that create fully initialised
MessageSends, so I'd rather hope (quite possibly in vain) that noone
creates MessageSends through #new directly. It doesn't look like the
base image does so.
frank
Chris Muller uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-cmm.819.mcz
==================== Summary ====================
Name: Kernel-cmm.819
Author: cmm
Time: 6 November 2013, 3:42:56.929 pm
UUID: df349ca4-09ec-4a78-b10b-bc2ca823d8cd
Ancestors: Kernel-nice.818
- Fix #numArgs for MessageSend's whose arguments have not yet been set.
=============== Diff against Kernel-nice.818 ===============
Item was changed:
----- Method: MessageSend>>numArgs (in category 'accessing') -----
numArgs
+ ^ selector numArgs!
- "Answer the number of arguments in this message"
-
- ^arguments size!
On 6 November 2013 18:43, <commits(a)source.squeak.org> wrote:
> Frank Shearar uploaded a new version of XML-Parser to project The Trunk:
> http://source.squeak.org/trunk/XML-Parser-fbs.36.mcz
>
> ==================== Summary ====================
>
> Name: XML-Parser-fbs.36
> Author: fbs
> Time: 6 November 2013, 6:44:04.952 pm
> UUID: a2d9791a-c341-564b-9b57-a0fe9f42b66f
> Ancestors: XML-Parser-ael.35
>
> More #shouldnt:raise: Error fixes.
>
> =============== Diff against XML-Parser-ael.35 ===============
There should now be no senders of #shouldnt:raise: that take an Error
as parameter. Finally. I blame Nicolas for his nagging :)
frank
Frank Shearar uploaded a new version of XML-Parser to project The Trunk:
http://source.squeak.org/trunk/XML-Parser-fbs.36.mcz
==================== Summary ====================
Name: XML-Parser-fbs.36
Author: fbs
Time: 6 November 2013, 6:44:04.952 pm
UUID: a2d9791a-c341-564b-9b57-a0fe9f42b66f
Ancestors: XML-Parser-ael.35
More #shouldnt:raise: Error fixes.
=============== Diff against XML-Parser-ael.35 ===============
Item was changed:
----- Method: XMLParserTest>>testExampleAddressBook (in category 'tests') -----
testExampleAddressBook
| tokenizer |
"self debug: #testExampleAddressBook"
tokenizer := XMLTokenizer on: self addressBookXML readStream.
"We enumerate the first characters of the addressbook example. The file being parsed begins with <addressbook"
self assert: tokenizer next = $<.
self assert: tokenizer next = $a.
self assert: tokenizer next = $d.
self assert: tokenizer next = $d.
self assert: tokenizer next = $r.
+ "This should not raise an exception."
+ [tokenizer next notNil] whileTrue: [].!
- self shouldnt: ([tokenizer next notNil] whileTrue: []) raise: Error. !
Item was changed:
----- Method: XMLParserTest>>testExampleAddressBookWithDTD (in category 'tests') -----
testExampleAddressBookWithDTD
| tokenizer |
"XMLTokenizer exampleAddressBookWithDTD"
tokenizer := XMLTokenizer on: self addressBookXMLWithDTD readStream.
+
+ "This should not raise an exception."
+ [tokenizer next notNil] whileTrue: [].!
- self shouldnt: ([tokenizer next notNil] whileTrue: []) raise: Error!