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

Brent Pinkney brent.pinkney at aircom.co.za
Tue Sep 20 11:03:02 UTC 2005


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