NSAbstractDataStream class >>initialize

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

NSAbstractDataStream class >>initialize

Alexandre Bergel
Hi Damien,

The method NSAbstractDataStream class >>initialize contains the  
following code:
-=-=-=-=-=-=-=-=-=
Smalltalk do: [:cls |
                cls isInMemory ifTrue: [
                        cls isBehavior ifTrue: [
                                cls isPointers not & cls isVariable & cls isWords ifTrue: [
                                        (t includesKey: cls) ifFalse: [t at: cls put: 20]]]]].
-=-=-=-=-=-=-=-=-=

The problem is that isInMemory is not in Pharo 1.1 anymore.
I think that you can remove the condition "cls isInMemory ifTrue: [".  
Maybe someone else can confirm?

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.







--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: NSAbstractDataStream class >>initialize

Mariano Martinez Peck


On Tue, Apr 27, 2010 at 9:30 PM, Alexandre Bergel <[hidden email]> wrote:
Hi Damien,

The method NSAbstractDataStream class >>initialize contains the following code:
-=-=-=-=-=-=-=-=-=
Smalltalk do: [:cls |
               cls isInMemory ifTrue: [
                       cls isBehavior ifTrue: [
                               cls isPointers not & cls isVariable & cls isWords ifTrue: [
                                       (t includesKey: cls) ifFalse: [t at: cls put: 20]]]]].
-=-=-=-=-=-=-=-=-=

The problem is that isInMemory is not in Pharo 1.1 anymore.
I think that you can remove the condition "cls isInMemory ifTrue: [". Maybe someone else can confirm?


Yes, it can be removed. However, what happens if someone wants that in Pharo 1.0 ?   Anyway, that code of isInMemory was for ImageSegment...I don't think it is very used.

 
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.







--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project