[Pharo-project] PackageInfo >> printOn:
Hi. The current implementation of PackageInfo >> printOn: is this: printOn: aStream super printOn: aStream. aStream nextPutAll: '(',self packageName,')'. So...it prints something like this: 'aPackageInfo(Collections-Weak)' most of the times I prefer to print 'Collections-Weak' in my image I change it to printOn: aStream aStream nextPutAll: self packageName. Do you think this can be useful for the rest or I just keep it in my image? Cheers Mariano
Or maybe we can add PackageInfo >> name ^ self packageName On Tue, Aug 24, 2010 at 4:54 PM, Mariano Martinez Peck < marianopeck@gmail.com> wrote:
Hi. The current implementation of PackageInfo >> printOn: is this:
printOn: aStream
super printOn: aStream. aStream nextPutAll: '(',self packageName,')'.
So...it prints something like this: 'aPackageInfo(Collections-Weak)'
most of the times I prefer to print 'Collections-Weak'
in my image I change it to
printOn: aStream
aStream nextPutAll: self packageName.
Do you think this can be useful for the rest or I just keep it in my image?
Cheers
Mariano
may be { Collections-Weak } to make a displayed sign to denote packages. Stef
Or maybe we can add
PackageInfo >> name ^ self packageName
On Tue, Aug 24, 2010 at 4:54 PM, Mariano Martinez Peck <marianopeck@gmail.com> wrote: Hi. The current implementation of PackageInfo >> printOn: is this:
printOn: aStream
super printOn: aStream. aStream nextPutAll: '(',self packageName,')'.
So...it prints something like this: 'aPackageInfo(Collections-Weak)'
most of the times I prefer to print 'Collections-Weak'
in my image I change it to
printOn: aStream
aStream nextPutAll: self packageName.
Do you think this can be useful for the rest or I just keep it in my image?
Cheers
Mariano
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
I would change it to PackageInfo>>printOn: aStream aStream print: self class; nextPutAll: ' named: '; print: self packageName That's basically the only solution that really makes sense. Lukas On 24 August 2010 22:50, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
may be { Collections-Weak } to make a displayed sign to denote packages.
Stef
Or maybe we can add
PackageInfo >> name ^ self packageName
On Tue, Aug 24, 2010 at 4:54 PM, Mariano Martinez Peck <marianopeck@gmail.com> wrote: Hi. The current implementation of PackageInfo >> printOn: Â is this:
printOn: aStream
  super printOn: aStream.   aStream nextPutAll: '(',self packageName,')'.
So...it prints something like this: 'aPackageInfo(Collections-Weak)'
most of the times I prefer to print 'Collections-Weak'
in my image I change it to
printOn: aStream
  aStream nextPutAll: self packageName.
Do you think this can be useful for the rest or I just keep it in my image?
Cheers
Mariano
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Lukas Renggli www.lukas-renggli.ch
You remember when we tried to tag all senders and implementors result with a package (because I need this information when trying to get throw the junggle) and I thought that the printOn: could remind such notation. Now probably this solution is better/ Stef
I would change it to
PackageInfo>>printOn: aStream aStream print: self class; nextPutAll: ' named: '; print: self packageName
That's basically the only solution that really makes sense.
Lukas
On 24 August 2010 22:50, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
may be { Collections-Weak } to make a displayed sign to denote packages.
Stef
Or maybe we can add
PackageInfo >> name ^ self packageName
On Tue, Aug 24, 2010 at 4:54 PM, Mariano Martinez Peck <marianopeck@gmail.com> wrote: Hi. The current implementation of PackageInfo >> printOn: is this:
printOn: aStream
super printOn: aStream. aStream nextPutAll: '(',self packageName,')'.
So...it prints something like this: 'aPackageInfo(Collections-Weak)'
most of the times I prefer to print 'Collections-Weak'
in my image I change it to
printOn: aStream
aStream nextPutAll: self packageName.
Do you think this can be useful for the rest or I just keep it in my image?
Cheers
Mariano
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Lukas Renggli www.lukas-renggli.ch
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
participants (3)
-
Lukas Renggli -
Mariano Martinez Peck -
Stéphane Ducasse