From xs4hkr at gmail.com Sun Nov 4 13:41:54 2007 From: xs4hkr at gmail.com (Has van der Krieken) Date: Sun, 4 Nov 2007 13:41:54 +0100 Subject: [sbe-discussion] errors on page 142 Message-ID: <1e86bb070711040441i61d804bu2b74f12c094675b@mail.gmail.com> I think the methods added to StringTest should be: (i.e. including the dot in the suffix) Method 6.2 testSuffixFound self assert: 'readme.txt' suffix = '.txt' Method 6.3 testSuffixFound self assert: 'readme.txt' suffix = '.txt'. self assert: 'read.me.txt' suffix = '.txt' Regards, Has. From xs4hkr at gmail.com Thu Nov 8 21:19:33 2007 From: xs4hkr at gmail.com (Has van der Krieken) Date: Thu, 8 Nov 2007 21:19:33 +0100 Subject: [sbe-discussion] typo on page 191 Message-ID: <1e86bb070711081219t12ad7311n1ff5eeeb20e6a08d@mail.gmail.com> Typo found in page 191 of the 13-09-2007 version: conjuctions Regards, Has. From xs4hkr at gmail.com Thu Nov 8 22:32:02 2007 From: xs4hkr at gmail.com (Has van der Krieken) Date: Thu, 8 Nov 2007 22:32:02 +0100 Subject: [sbe-discussion] typo on page 196 Message-ID: <1e86bb070711081332s7cae3492x772013ad88068822@mail.gmail.com> Figure 9.3 In Protocol creation: with: anElement All: aCollection should be: withAll: aCollection Regards, Has. From xs4hkr at gmail.com Thu Nov 8 23:50:28 2007 From: xs4hkr at gmail.com (Has van der Krieken) Date: Thu, 8 Nov 2007 23:50:28 +0100 Subject: [sbe-discussion] typo on page 199 Message-ID: <1e86bb070711081450t29c83958qd9959d5fd89816d9@mail.gmail.com> typo found on page 199: relize instead of realize at the end of the "Common creation protocol" paragraph. Regards, Has. From xs4hkr at gmail.com Fri Nov 9 14:22:51 2007 From: xs4hkr at gmail.com (Has van der Krieken) Date: Fri, 9 Nov 2007 14:22:51 +0100 Subject: [sbe-discussion] error on page 204 Message-ID: <1e86bb070711090522h5869280eg5c84012712d4c719@mail.gmail.com> I think that it's incorrect stating that the literal 'foobar' is stored once. Therefore "trouble at: 'foobar'" will raise an 'key not found' exception. At least it does in my 3.9 development image. Regards, Has. From xs4hkr at gmail.com Fri Nov 9 16:11:21 2007 From: xs4hkr at gmail.com (Has van der Krieken) Date: Fri, 9 Nov 2007 16:11:21 +0100 Subject: [sbe-discussion] Re: error on page 204 In-Reply-To: <1e86bb070711090522h5869280eg5c84012712d4c719@mail.gmail.com> References: <1e86bb070711090522h5869280eg5c84012712d4c719@mail.gmail.com> Message-ID: <1e86bb070711090711m1f6f3d37sb62251f5cf29af55@mail.gmail.com> Hm, the identity 'foobar' == 'foobar' returns true. So I would say that the literal string is stored once. Sorry about that. But why is "trouble at: 'foobar'" raising an "key not found" exception then? Anyone? Regards, Has. On Nov 9, 2007 2:22 PM, Has van der Krieken wrote: > I think that it's incorrect stating that the literal 'foobar' is stored once. > Therefore "trouble at: 'foobar'" will raise an 'key not found' exception. > At least it does in my 3.9 development image. > > Regards, Has. > From black at cs.pdx.edu Fri Nov 9 17:52:24 2007 From: black at cs.pdx.edu (Andrew P. Black) Date: Fri, 9 Nov 2007 08:52:24 -0800 Subject: [sbe-discussion] Re: error on page 204 In-Reply-To: <1e86bb070711090711m1f6f3d37sb62251f5cf29af55@mail.gmail.com> References: <1e86bb070711090522h5869280eg5c84012712d4c719@mail.gmail.com> <1e86bb070711090711m1f6f3d37sb62251f5cf29af55@mail.gmail.com> Message-ID: <9DAB2547-F038-42C5-B4E5-50A53B4BFA9E@cs.pdx.edu> On 9 Nov 2007, at 7:11, Has van der Krieken wrote: > Hm, the identity 'foobar' == 'foobar' returns true. > So I would say that the literal string is stored once. Sorry about > that. > But why is "trouble at: 'foobar'" raising an "key not found" > exception then? > > Anyone? > > Regards, Has. > > On Nov 9, 2007 2:22 PM, Has van der Krieken wrote: >> I think that it's incorrect stating that the literal 'foobar' is >> stored once. >> Therefore "trouble at: 'foobar'" will raise an 'key not found' >> exception. >> At least it does in my 3.9 development image. >> >> I think that you will find that it depends how you compile it. If you compile (i.e., "do it") the whole script at once, it will work. However, if you compile the at: put: and the add: in separate doits, then they will get separate copies of the literal. Andrew Professor Andrew P. Black Department of Computer Science Portland State University +1 503 725 2411 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/sbe-discussion/attachments/20071109/af6702dc/attachment-0001.html From xs4hkr at gmail.com Fri Nov 9 21:16:48 2007 From: xs4hkr at gmail.com (Has van der Krieken) Date: Fri, 9 Nov 2007 21:16:48 +0100 Subject: [sbe-discussion] Re: error on page 204 In-Reply-To: <9DAB2547-F038-42C5-B4E5-50A53B4BFA9E@cs.pdx.edu> References: <1e86bb070711090522h5869280eg5c84012712d4c719@mail.gmail.com> <1e86bb070711090711m1f6f3d37sb62251f5cf29af55@mail.gmail.com> <9DAB2547-F038-42C5-B4E5-50A53B4BFA9E@cs.pdx.edu> Message-ID: <1e86bb070711091216m7d8c2eefiff30c1087a8d6b9e@mail.gmail.com> You're absolutely right. But the way it's presented in the book, there's no dot between the "trouble at:" messages and there's "print it" right after each one of them. That may be a bit confusing for me and others readers. Regards, Has. On 11/9/07, Andrew P. Black wrote: > > > > On 9 Nov 2007, at 7:11, Has van der Krieken wrote: > > Hm, the identity 'foobar' == 'foobar' returns true. > So I would say that the literal string is stored once. Sorry about that. > But why is "trouble at: 'foobar'" raising an "key not found" exception then? > > Anyone? > > Regards, Has. > > On Nov 9, 2007 2:22 PM, Has van der Krieken wrote: > I think that it's incorrect stating that the literal 'foobar' is stored > once. > Therefore "trouble at: 'foobar'" will raise an 'key not found' exception. > At least it does in my 3.9 development image. > > > > I think that you will find that it depends how you compile it. If you > compile (i.e., "do it") the whole script at once, it will work. > However, if you compile the at: put: and the add: in separate doits, then > they will get separate copies of the literal. > > Andrew > > > > Professor Andrew P. Black > Department of Computer Science > Portland State University > +1 503 725 2411 > > > > > _______________________________________________ > Sbe-discussion mailing list > Sbe-discussion at iam.unibe.ch > https://www.iam.unibe.ch/mailman/listinfo/sbe-discussion > > From oscar at iam.unibe.ch Mon Nov 12 09:49:16 2007 From: oscar at iam.unibe.ch (Oscar Nierstrasz) Date: Mon, 12 Nov 2007 09:49:16 +0100 Subject: [sbe-discussion] Re: typo on page 191 In-Reply-To: <1e86bb070711081219t12ad7311n1ff5eeeb20e6a08d@mail.gmail.com> References: <1e86bb070711081219t12ad7311n1ff5eeeb20e6a08d@mail.gmail.com> Message-ID: Fixed. Thanks, - on On Nov 8, 2007, at 21:19, Has van der Krieken wrote: > Typo found in page 191 of the 13-09-2007 version: > > conjuctions > > Regards, Has. > _______________________________________________ > Sbe-discussion mailing list > Sbe-discussion at iam.unibe.ch > https://www.iam.unibe.ch/mailman/listinfo/sbe-discussion From oscar at iam.unibe.ch Mon Nov 12 09:49:34 2007 From: oscar at iam.unibe.ch (Oscar Nierstrasz) Date: Mon, 12 Nov 2007 09:49:34 +0100 Subject: [sbe-discussion] Re: typo on page 196 In-Reply-To: <1e86bb070711081332s7cae3492x772013ad88068822@mail.gmail.com> References: <1e86bb070711081332s7cae3492x772013ad88068822@mail.gmail.com> Message-ID: Ugh. Thanks for pointing this out. - on On Nov 8, 2007, at 22:32, Has van der Krieken wrote: > Figure 9.3 > > In Protocol creation: > > with: anElement All: aCollection > > should be: > > withAll: aCollection > > Regards, Has. > _______________________________________________ > Sbe-discussion mailing list > Sbe-discussion at iam.unibe.ch > https://www.iam.unibe.ch/mailman/listinfo/sbe-discussion From oscar at iam.unibe.ch Mon Nov 12 09:58:27 2007 From: oscar at iam.unibe.ch (Oscar Nierstrasz) Date: Mon, 12 Nov 2007 09:58:27 +0100 Subject: [sbe-discussion] Re: error on page 204 In-Reply-To: <1e86bb070711091216m7d8c2eefiff30c1087a8d6b9e@mail.gmail.com> References: <1e86bb070711090522h5869280eg5c84012712d4c719@mail.gmail.com> <1e86bb070711090711m1f6f3d37sb62251f5cf29af55@mail.gmail.com> <9DAB2547-F038-42C5-B4E5-50A53B4BFA9E@cs.pdx.edu> <1e86bb070711091216m7d8c2eefiff30c1087a8d6b9e@mail.gmail.com> Message-ID: <45F6FB2B-2668-4B65-9548-5CB3D8C23E4A@iam.unibe.ch> OK, I have marked it as a to-do to fix for the next edition. I think the example must be re-written to make it easier to reproduce. It is a shortcoming of our approach to displaying the examples. Note that the generated test is unambiguous, but more verbose. test453 | a b trouble | a := 'foobar'. b := a copy. trouble := IdentityDictionary new. trouble at: a put: 'a'; at: b put: 'b'. self assert: [ trouble at: a ] value printString = '''a'''. self assert: [ trouble at: b ] value printString = '''b'''. self assert: [ trouble at: 'foobar' ] value printString = '''a'''. Cheers, - on On Nov 9, 2007, at 21:16, Has van der Krieken wrote: > You're absolutely right. But the way it's presented in the book, > there's no dot between the "trouble at:" messages and there's "print > it" right after each one of them. > That may be a bit confusing for me and others readers. > > Regards, Has. > > On 11/9/07, Andrew P. Black wrote: >> >> >> >> On 9 Nov 2007, at 7:11, Has van der Krieken wrote: >> >> Hm, the identity 'foobar' == 'foobar' returns true. >> So I would say that the literal string is stored once. Sorry about >> that. >> But why is "trouble at: 'foobar'" raising an "key not found" >> exception then? >> >> Anyone? >> >> Regards, Has. >> >> On Nov 9, 2007 2:22 PM, Has van der Krieken wrote: >> I think that it's incorrect stating that the literal 'foobar' is >> stored >> once. >> Therefore "trouble at: 'foobar'" will raise an 'key not found' >> exception. >> At least it does in my 3.9 development image. >> >> >> >> I think that you will find that it depends how you compile it. If >> you >> compile (i.e., "do it") the whole script at once, it will work. >> However, if you compile the at: put: and the add: in separate >> doits, then >> they will get separate copies of the literal. >> >> Andrew >> >> >> >> Professor Andrew P. Black >> Department of Computer Science >> Portland State University >> +1 503 725 2411 >> >> >> >> >> _______________________________________________ >> Sbe-discussion mailing list >> Sbe-discussion at iam.unibe.ch >> https://www.iam.unibe.ch/mailman/listinfo/sbe-discussion >> >> > _______________________________________________ > Sbe-discussion mailing list > Sbe-discussion at iam.unibe.ch > https://www.iam.unibe.ch/mailman/listinfo/sbe-discussion From xs4hkr at gmail.com Mon Nov 12 22:29:39 2007 From: xs4hkr at gmail.com (Has van der Krieken) Date: Mon, 12 Nov 2007 22:29:39 +0100 Subject: [sbe-discussion] type on page 235 Message-ID: <1e86bb070711121329l4aeef52qe20d6d034a667973@mail.gmail.com> "The bound method" -> "The bounds method" Regards, Has. From oscar at iam.unibe.ch Tue Nov 13 09:51:19 2007 From: oscar at iam.unibe.ch (Oscar Nierstrasz) Date: Tue, 13 Nov 2007 09:51:19 +0100 Subject: [sbe-discussion] Re: type on page 235 In-Reply-To: <1e86bb070711121329l4aeef52qe20d6d034a667973@mail.gmail.com> References: <1e86bb070711121329l4aeef52qe20d6d034a667973@mail.gmail.com> Message-ID: <11506758-687F-42D7-A0C6-9A3D86321B15@iam.unibe.ch> Thanks Has, It looks like Andrew has already changed a lot of things in this chapter, but I haven't had time yet to check it. Cheers, Oscar On Nov 12, 2007, at 22:29, Has van der Krieken wrote: > "The bound method" -> "The bounds method" > > Regards, Has. > _______________________________________________ > Sbe-discussion mailing list > Sbe-discussion at iam.unibe.ch > https://www.iam.unibe.ch/mailman/listinfo/sbe-discussion From xs4hkr at gmail.com Tue Nov 13 10:56:47 2007 From: xs4hkr at gmail.com (Has van der Krieken) Date: Tue, 13 Nov 2007 10:56:47 +0100 Subject: [sbe-discussion] Re: type on page 235 In-Reply-To: <11506758-687F-42D7-A0C6-9A3D86321B15@iam.unibe.ch> References: <1e86bb070711121329l4aeef52qe20d6d034a667973@mail.gmail.com> <11506758-687F-42D7-A0C6-9A3D86321B15@iam.unibe.ch> Message-ID: <1e86bb070711130156nf9d78c6ve20b767b38808fda@mail.gmail.com> Hi Oscar, No problem. I'm slowly working my way through SBE. It's a lot of fun. Thanks, Has. On Nov 13, 2007 9:51 AM, Oscar Nierstrasz wrote: > > Thanks Has, > > It looks like Andrew has already changed a lot of things in this > chapter, but I haven't had time yet to check it. > > Cheers, Oscar > > > On Nov 12, 2007, at 22:29, Has van der Krieken wrote: > > > "The bound method" -> "The bounds method" > > > > Regards, Has. > > _______________________________________________ > > Sbe-discussion mailing list > > Sbe-discussion at iam.unibe.ch > > https://www.iam.unibe.ch/mailman/listinfo/sbe-discussion > > _______________________________________________ > Sbe-discussion mailing list > Sbe-discussion at iam.unibe.ch > https://www.iam.unibe.ch/mailman/listinfo/sbe-discussion >