[BUG][FIX] MaCollectionIndex >> #recordSize:

Chris Muller afunkyobject at yahoo.com
Tue Sep 20 15:38:31 UTC 2005


Interesting.  I wonder what I was thinking when I did that..

Thanks for letting me know, it'll be fixed.

 - Chris

--- Brent Pinkney <brent.pinkney at aircom.co.za> wrote:

> Hi Chris,
> 
> There is a bug in Magma tester-cmm.202 which presents the recordSize: from
> being set.
> 
> The current version has an erroneous isNil check which prevents the rcord
> size from ever begin set to a valid value.
> 
> This version works well for us:
> 
> MaCollectionIndex >> #recordSize: anInteger
> 	"Only set this ONCE, when you create the index."
> 
> 	(MaHashIndex validRecordSizes includes: anInteger)
> 		ifTrue: [ recordSize := anInteger ]
> 		ifFalse:
> 			[ MagmaUserError signal: 'recordSize must be one of ' ,
> 				MaHashIndex validRecordSizes printString ]
> !
> 
> Regards
> 
> Brent
> 
> 




More information about the Magma mailing list