self timeStamp 
ifNotEmpty: [:s | 
|subS|
subS := s subStrings first 
subS first isLetter ifTrue:[^subS]].
^''


On Nov 12, 2011, at 22:44 , Stéphane Ducasse wrote:

good idea.
if you have a piece of code send it.

Stef

On Nov 9, 2011, at 9:32 AM, jannik.laval wrote:

Hi Stef,

It is not so simple :)
Take this example from Moose:

===
LANNode methodDictionary collect:[:e | e timeStamp ifNotEmpty: [:s | s subStrings first ]]
===

LANNode has no author, so if you take the first substring you will have the date of creation.
I have not a good solution, but for my scripts, I test the first character of the substring: if it is a letter, this is an author, else, there is no author.
===
((myString subStrings) first at:1) isLetter
===

Cheers,

On Nov 6, 2011, at 21:48 , Stéphane Ducasse wrote:

http://code.google.com/p/pharo/issues/detail?id=4971


In moose ? because in pharo this is like that and the changes I added where just to make sure that all the clients do not have to deal with timestamp stupid parsing.




_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

---
Jannik Laval





---
Jannik Laval