On Wed, Jul 22, 2009 at 5:20 PM, Miguel Cobá<miguel.coba@gmail.com> wrote:
On Wed, Jul 22, 2009 at 4:32 PM, Stéphane Ducasse<stephane.ducasse@inria.fr> wrote:
Yes but I mean, in a clean core image, on first method save it asks for the initials, this is stored on the initials inst var of the singleton Author.
But on the World Menu, the set author name, it stores (in a firstname.lastname format) the value entered in the name inst var
So, setting one, doesn't set the other. Also, the messages are different for each one (rightly, because are different things) but I want to know what is the inteded behavior from now on to trying to do the changes.
Yes this is the mess. Can you propose a nice solution?
Ok, this is the proposal.
The Author class will use only the name inst var and related methods. The initials related are to be unused and later droped in a subsecuent release.
All the calls to initials methods will be replaced by names methods.
The format for the name will be free, and suggested by the prompt message to
firstname.lastname
but not enforced.
It will not allow spaces, just letters and periods in places of spaces e.g.
Miguel Cobá -> miguel.coba John The Hacker -> john.the.hacker Peter O'Toole -> peter.otoole or maybe peter.o.toole
This period in place of space can be discussed because monticello replaces periods for "_". Maybe 'firstname_lastname' should be suggested in the prompt.
Every package not in core that use the initial methods should be allowed to use the deprecated initials methods but strongly urged to change to the names methods.
At least in core, the initials should not be used anymore.
What do you think?
Miguel Cobá
Something easier would be to write the same to initials and name no matter what method was called, this would be less disruptive to the image but it will also have to modify the prompt messages to not mention initials but name in all messages. I, personally, vote for the complete delete of initials code mentioned before. Miguel Cobá
Is the user only asked for name (forcing a format like firstname.lastname) and the initials are calculated accordingly?
would be good but some people on ss have funky initials because theirs were taken. This is why initials does not scale.
Are the initials doomed to disappear, and the only interface will be the name (and possibly the email and other fields mentioned) to identify a person? This means to modify all the senders to initial methods and point them to name methods. With the time, the initials inst var will be droped from the Author class.
I think so.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project