[FIX] FileListRegistering Fix

ducasse at iam.unibe.ch ducasse at iam.unibe.ch
Wed Feb 6 20:56:36 UTC 2002


Hi 

This is the final version of the RegisteringFile list for Squeak3.3. I
took into account the remarks of ned. But in this version I made it in a
clever way. The tools is passed the fullname and its suffix. So the
suffix does not have to be extracted by every tools. 

I learned by looking at it that we will have a problem concerning the
modules loading and unloading. Henrick have you a solution for the
following problem:
	I have two delta modules that when loaded extend the same method of a
class A
	(in our case this is class initialize). 
	I do not want to merge them by hand because else we cannot unload one
of the module.

Stef

PS: Ned I did not took into account your previosu fix for the same
reason, I did not get what I made wrong (which is certainly true but
obscure to me). 



from preamble:

"Change Set:		FileListFix
Date:			6 February 2002
Author:			stephane ducasse

Fix some problems with the registering file list
The protocol changed also.

Now any tools have to implement on its class side
the methods: 
	services that returns all the services provided
	ÃfileReaderServicesForFile: fullName suffix: suffix that given a full
name file and its suffix returns appropriate services. 

Note that the services will be invoked passing the fullname of the
selected file.

Read preamble of 4684 for more information.

Known problems:

the registration of a tool (when loaded in the image)
is done via the class initialize method. 
Some classes like GZipReadStream already implement such method hence it
is impossible to define an initialize method that could be unloaded when
the tools would be unloaded. This means that the modules system will
have to provide some mechanism so that multiple class extensions can be
executed at load time

This is for example true for the following classes:
GZipReadStream, Morph, SWikiPage and Wonderland
"!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FileListFix.cs.gz
Type: application/octet-stream
Size: 7184 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020206/fb95ae07/FileListFix.cs.obj


More information about the Squeak-dev mailing list