[Pharo-project] Underscore assignments
I wonder if we should throw a deprecated message in Pharo 1.0 when somebody tries to compile a method with an underscore assignment? I would like to make it possible to use underscore characters in selectors and identifiers in Pharo 1.1. Cheers, Lukas -- Lukas Renggli http://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
[Pharo-project] Underscore assignments
+1 -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Underscore assignments
+1 -- Cheers, Peter On Wed, Nov 4, 2009 at 9:25 AM, Lukas Renggli wrote: > I wonder if we should throw a deprecated message in Pharo 1.0 when > somebody tries to compile a method with an underscore assignment? I > would like to make it possible to use underscore characters in > selectors and identifiers in Pharo 1.1. > > Cheers, > Lukas > > -- > Lukas Renggli > http://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 > ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Underscore assignments
yes please! On 04 Nov 2009, at 09:49, Torsten Bergmann wrote: > +1 > > > -- > GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 > > ___ > Pharo-project mailing list > Pharo-project@lists.gforge.inria.fr > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project Johan Brichau johan.bric...@uclouvain.be ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Underscore assignments
+10 -Original Message- From: pharo-project-boun...@lists.gforge.inria.fr [mailto:pharo-project-boun...@lists.gforge.inria.fr] On Behalf Of Lukas Renggli Sent: Wednesday, November 04, 2009 3:25 AM To: Pharo Development Subject: [Pharo-project] Underscore assignments I wonder if we should throw a deprecated message in Pharo 1.0 when somebody tries to compile a method with an underscore assignment? I would like to make it possible to use underscore characters in selectors and identifiers in Pharo 1.1. Cheers, Lukas -- Lukas Renggli http://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 ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Underscore assignments
+1 2009/11/4 Schwab,Wilhelm K : > +10 > > > > -Original Message- > From: pharo-project-boun...@lists.gforge.inria.fr > [mailto:pharo-project-boun...@lists.gforge.inria.fr] On Behalf Of Lukas > Renggli > Sent: Wednesday, November 04, 2009 3:25 AM > To: Pharo Development > Subject: [Pharo-project] Underscore assignments > > I wonder if we should throw a deprecated message in Pharo 1.0 when somebody > tries to compile a method with an underscore assignment? I would like to make > it possible to use underscore characters in selectors and identifiers in > Pharo 1.1. > > Cheers, > Lukas > > -- > Lukas Renggli > http://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 > > ___ > Pharo-project mailing list > Pharo-project@lists.gforge.inria.fr > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > -- Best regards, Igor Stasenko AKA sig. ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Underscore assignments
+1 On 2009-11-04 10:12:24 -0300, Igor Stasenko said: > +1 > > 2009/11/4 Schwab,Wilhelm K : >> +10 >> >> >> >> -Original Message- >> From: >> pharo-project-boun...@lists.gforge.inria.fr >> [mailto:pharo-project-boun...@lists.gforge.inria.fr] >> On Behalf Of Lukas Renggli >> Sent: Wednesday, November 04, 2009 3:25 AM >> To: Pharo Development >> Subject: [Pharo-project] Underscore assignments >> >> I wonder if we should throw a deprecated message in Pharo 1.0 when >> somebody tries to compile a method with an underscore assignment? I >> would like to make it possible to use underscore characters in >> selectors and identifiers in Pharo 1.1. >> >> Cheers, >> Lukas >> >> -- >> Lukas Renggli >> http://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 >> >> ___ >> 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
Re: [Pharo-project] Underscore assignments
amen! send code and this is done. Stef On Nov 4, 2009, at 2:42 PM, Esteban Lorenzano wrote: > +1 > > On 2009-11-04 10:12:24 -0300, Igor Stasenko > said: > >> +1 >> >> 2009/11/4 Schwab,Wilhelm K : >>> +10 >>> >>> >>> >>> -Original Message- >>> From: >>> pharo-project-boun...@lists.gforge.inria.fr >>> [mailto:pharo-project-boun...@lists.gforge.inria.fr] >>> On Behalf Of Lukas Renggli >>> Sent: Wednesday, November 04, 2009 3:25 AM >>> To: Pharo Development >>> Subject: [Pharo-project] Underscore assignments >>> >>> I wonder if we should throw a deprecated message in Pharo 1.0 when >>> somebody tries to compile a method with an underscore assignment? I >>> would like to make it possible to use underscore characters in >>> selectors and identifiers in Pharo 1.1. >>> >>> Cheers, >>> Lukas >>> >>> -- >>> Lukas Renggli >>> http://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 >>> >>> ___ >>> 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 ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Underscore assignments
Stef, Many thanks!! We already have what I have dubbed underscore_madness.cs; contrary to well-intentioned rumors, I did not write it; I simply held onto it for years. It is not a complete fix, allowing underscores only in selectors and not in the first position. It is useful just the same. I very much want to see a complete fix, as external interfacing often motivates me to use underscores in class names. Bill -Original Message- From: pharo-project-boun...@lists.gforge.inria.fr [mailto:pharo-project-boun...@lists.gforge.inria.fr] On Behalf Of Stéphane Ducasse Sent: Wednesday, November 04, 2009 9:43 AM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Underscore assignments amen! send code and this is done. Stef On Nov 4, 2009, at 2:42 PM, Esteban Lorenzano wrote: > +1 > > On 2009-11-04 10:12:24 -0300, Igor Stasenko said: > >> +1 >> >> 2009/11/4 Schwab,Wilhelm K : >>> +10 >>> >>> >>> >>> -Original Message- >>> From: >>> pharo-project-boun...@lists.gforge.inria.fr >>> [mailto:pharo-project-boun...@lists.gforge.inria.fr] >>> On Behalf Of Lukas Renggli >>> Sent: Wednesday, November 04, 2009 3:25 AM >>> To: Pharo Development >>> Subject: [Pharo-project] Underscore assignments >>> >>> I wonder if we should throw a deprecated message in Pharo 1.0 when >>> somebody tries to compile a method with an underscore assignment? I >>> would like to make it possible to use underscore characters in >>> selectors and identifiers in Pharo 1.1. >>> >>> Cheers, >>> Lukas >>> >>> -- >>> Lukas Renggli >>> http://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 >>> >>> ___ >>> 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 ___ 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
Re: [Pharo-project] Underscore assignments
Hi torsten , just curious what mailer you use? it seems that all your emails break the threading. This is very apparent when reading the list via gmail. I wasn't sure if you knew. Just thought I would mention it. Mike On Wednesday, November 4, 2009, Torsten Bergmann wrote: > +1 > > > -- > GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 > > ___ > 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
Re: [Pharo-project] Underscore assignments
> Hi torsten , just curious what mailer you use? it seems that all your > emails break the threading. This is very apparent when reading the > list via gmail. I wasn't sure if you knew. Just thought I would > mention it. It annoys me too :-) Lukas > Mike > > On Wednesday, November 4, 2009, Torsten Bergmann wrote: >> +1 >> >> >> -- >> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! >> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 >> >> ___ >> 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 http://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
Re: [Pharo-project] Underscore assignments
I committed SLICE-DoNotCompileUnderscoreAssignments-LukasRenggli.1.mcz. The only change is that the compiler refuses to compile underscore assignments. It seems to be problematic to throw a deprecated message, as this can happen in all kind of weird situations. So now you just get a syntax error, or in interactive mode (when loading with Monticello) a popup that gives you the possibility to fix the code. I suggest to integrate that into Pharo 1.0. Loading old code is a bit cumbersome, but I guess most people already fixed their code-base. Next we can add underscore characters to the compiler in Pharo 1.1. Supporting underscore identifiers and assignments at the same time seems to be tricky, as there are all kinds of new ambiguities: a_1negated could be an assignment of 1 negated to a, or an access of the variable a_1negated :-/ Lukas 2009/11/4 Lukas Renggli : >> Hi torsten , just curious what mailer you use? it seems that all your >> emails break the threading. This is very apparent when reading the >> list via gmail. I wasn't sure if you knew. Just thought I would >> mention it. > > It annoys me too :-) > > Lukas > > >> Mike >> >> On Wednesday, November 4, 2009, Torsten Bergmann wrote: >>> +1 >>> >>> >>> -- >>> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! >>> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 >>> >>> ___ >>> 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 > http://www.lukas-renggli.ch > -- Lukas Renggli http://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
Re: [Pharo-project] Underscore assignments
On Nov 4, 2009, at 4:58 PM, Lukas Renggli wrote: > I committed SLICE-DoNotCompileUnderscoreAssignments-LukasRenggli. > 1.mcz. > > The only change is that the compiler refuses to compile underscore > assignments. It seems to be problematic to throw a deprecated message, > as this can happen in all kind of weird situations. So now you just > get a syntax error, or in interactive mode (when loading with > Monticello) a popup that gives you the possibility to fix the code. I > suggest to integrate that into Pharo 1.0. Loading old code is a bit > cumbersome, but I guess most people already fixed their code-base. really in 1.0 we should pay attention because we want as few as possible of fixes in 1.0 :) > Next we can add underscore characters to the compiler in Pharo 1.1. > Supporting underscore identifiers and assignments at the same time > seems to be tricky, as there are all kinds of new ambiguities: > a_1negated could be an assignment of 1 negated to a, or an access of > the variable a_1negated :-/ so for selector first :) > > Lukas > > 2009/11/4 Lukas Renggli : >>> Hi torsten , just curious what mailer you use? it seems that all >>> your >>> emails break the threading. This is very apparent when reading the >>> list via gmail. I wasn't sure if you knew. Just thought I would >>> mention it. >> >> It annoys me too :-) >> >> Lukas >> >> >>> Mike >>> >>> On Wednesday, November 4, 2009, Torsten Bergmann >>> wrote: +1 -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 ___ 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 >> http://www.lukas-renggli.ch >> > > > > -- > Lukas Renggli > http://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 ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Underscore assignments
>> The only change is that the compiler refuses to compile underscore >> assignments. It seems to be problematic to throw a deprecated message, >> as this can happen in all kind of weird situations. So now you just >> get a syntax error, or in interactive mode (when loading with >> Monticello) a popup that gives you the possibility to fix the code. I >> suggest to integrate that into Pharo 1.0. Loading old code is a bit >> cumbersome, but I guess most people already fixed their code-base. > > really in 1.0 > we should pay attention because we want as few as possible of fixes in > 1.0 :) It is not a fix. It just throws an error when somebody tries to compile code with underscore assignments. I thought that this would give people some time to think about their code, but probably it is not that useful after all and we better just fix the real thing. Lukas -- Lukas Renggli http://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
Re: [Pharo-project] Underscore assignments
http://code.google.com/p/pharo/issues/detail?id=1410 On Nov 4, 2009, at 4:58 PM, Lukas Renggli wrote: > I committed SLICE-DoNotCompileUnderscoreAssignments-LukasRenggli. > 1.mcz. > > The only change is that the compiler refuses to compile underscore > assignments. It seems to be problematic to throw a deprecated message, > as this can happen in all kind of weird situations. So now you just > get a syntax error, or in interactive mode (when loading with > Monticello) a popup that gives you the possibility to fix the code. I > suggest to integrate that into Pharo 1.0. Loading old code is a bit > cumbersome, but I guess most people already fixed their code-base. > > Next we can add underscore characters to the compiler in Pharo 1.1. > Supporting underscore identifiers and assignments at the same time > seems to be tricky, as there are all kinds of new ambiguities: > a_1negated could be an assignment of 1 negated to a, or an access of > the variable a_1negated :-/ > > Lukas > > 2009/11/4 Lukas Renggli : >>> Hi torsten , just curious what mailer you use? it seems that all >>> your >>> emails break the threading. This is very apparent when reading the >>> list via gmail. I wasn't sure if you knew. Just thought I would >>> mention it. >> >> It annoys me too :-) >> >> Lukas >> >> >>> Mike >>> >>> On Wednesday, November 4, 2009, Torsten Bergmann >>> wrote: +1 -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 ___ 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 >> http://www.lukas-renggli.ch >> > > > > -- > Lukas Renggli > http://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 ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Underscore assignments
On Wed, Nov 4, 2009 at 12:12 PM, Schwab,Wilhelm K wrote: > Stef, > > Many thanks!! We already have what I have dubbed underscore_madness.cs; > contrary to well-intentioned rumors, I did not write it; I simply held onto > it for years. It is not a complete fix, allowing underscores only in > selectors and not in the first position. It is useful just the same. > > Yes! I am using the same for Glorp. Bill your underscore_madness.cs is the same as this https://www.assembla.com/spaces/SqueakDBX/documents/dvVhPSvuCr3OqXeJe5aVNr/download/underscore.cs ??? > I very much want to see a complete fix, as external interfacing often > motivates me to use underscores in class names. > > Bill > > > > -Original Message- > From: pharo-project-boun...@lists.gforge.inria.fr [mailto: > pharo-project-boun...@lists.gforge.inria.fr] On Behalf Of Stéphane Ducasse > Sent: Wednesday, November 04, 2009 9:43 AM > To: Pharo-project@lists.gforge.inria.fr > Subject: Re: [Pharo-project] Underscore assignments > > amen! > send code and this is done. > > Stef > > On Nov 4, 2009, at 2:42 PM, Esteban Lorenzano wrote: > > > +1 > > > > On 2009-11-04 10:12:24 -0300, Igor Stasenko said: > > > >> +1 > >> > >> 2009/11/4 Schwab,Wilhelm K : > >>> +10 > >>> > >>> > >>> > >>> -Original Message- > >>> From: > >>> pharo-project-boun...@lists.gforge.inria.fr > >>> [mailto:pharo-project-boun...@lists.gforge.inria.fr] > >>> On Behalf Of Lukas Renggli > >>> Sent: Wednesday, November 04, 2009 3:25 AM > >>> To: Pharo Development > >>> Subject: [Pharo-project] Underscore assignments > >>> > >>> I wonder if we should throw a deprecated message in Pharo 1.0 when > >>> somebody tries to compile a method with an underscore assignment? I > >>> would like to make it possible to use underscore characters in > >>> selectors and identifiers in Pharo 1.1. > >>> > >>> Cheers, > >>> Lukas > >>> > >>> -- > >>> Lukas Renggli > >>> http://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 > >>> > >>> ___ > >>> 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 > > > ___ > 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 > ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Underscore assignments
I for one can live w/o underscore assignment :) -Original Message- From: pharo-project-boun...@lists.gforge.inria.fr [mailto:pharo-project-boun...@lists.gforge.inria.fr] On Behalf Of Lukas Renggli Sent: Wednesday, November 04, 2009 10:58 AM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Underscore assignments I committed SLICE-DoNotCompileUnderscoreAssignments-LukasRenggli.1.mcz. The only change is that the compiler refuses to compile underscore assignments. It seems to be problematic to throw a deprecated message, as this can happen in all kind of weird situations. So now you just get a syntax error, or in interactive mode (when loading with Monticello) a popup that gives you the possibility to fix the code. I suggest to integrate that into Pharo 1.0. Loading old code is a bit cumbersome, but I guess most people already fixed their code-base. Next we can add underscore characters to the compiler in Pharo 1.1. Supporting underscore identifiers and assignments at the same time seems to be tricky, as there are all kinds of new ambiguities: a_1negated could be an assignment of 1 negated to a, or an access of the variable a_1negated :-/ Lukas 2009/11/4 Lukas Renggli : >> Hi torsten , just curious what mailer you use? it seems that all your >> emails break the threading. This is very apparent when reading the >> list via gmail. I wasn't sure if you knew. Just thought I would >> mention it. > > It annoys me too :-) > > Lukas > > >> Mike >> >> On Wednesday, November 4, 2009, Torsten Bergmann wrote: >>> +1 >>> >>> >>> -- >>> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! >>> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 >>> >>> ___ >>> 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 > http://www.lukas-renggli.ch > -- Lukas Renggli http://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 ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Underscore assignments
Mariano, It's not "mine," but yes, it appears to be the same thing. Bill From: pharo-project-boun...@lists.gforge.inria.fr [mailto:pharo-project-boun...@lists.gforge.inria.fr] On Behalf Of Mariano Martinez Peck Sent: Wednesday, November 04, 2009 11:24 AM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Underscore assignments On Wed, Nov 4, 2009 at 12:12 PM, Schwab,Wilhelm K mailto:bsch...@anest.ufl.edu>> wrote: Stef, Many thanks!! We already have what I have dubbed underscore_madness.cs; contrary to well-intentioned rumors, I did not write it; I simply held onto it for years. It is not a complete fix, allowing underscores only in selectors and not in the first position. It is useful just the same. Yes! I am using the same for Glorp. Bill your underscore_madness.cs is the same as this https://www.assembla.com/spaces/SqueakDBX/documents/dvVhPSvuCr3OqXeJe5aVNr/download/underscore.cs ??? I very much want to see a complete fix, as external interfacing often motivates me to use underscores in class names. Bill -Original Message- From: pharo-project-boun...@lists.gforge.inria.fr<mailto:pharo-project-boun...@lists.gforge.inria.fr> [mailto:pharo-project-boun...@lists.gforge.inria.fr<mailto:pharo-project-boun...@lists.gforge.inria.fr>] On Behalf Of Stéphane Ducasse Sent: Wednesday, November 04, 2009 9:43 AM To: Pharo-project@lists.gforge.inria.fr<mailto:Pharo-project@lists.gforge.inria.fr> Subject: Re: [Pharo-project] Underscore assignments amen! send code and this is done. Stef On Nov 4, 2009, at 2:42 PM, Esteban Lorenzano wrote: > +1 > > On 2009-11-04 10:12:24 -0300, Igor Stasenko > mailto:siguc...@gmail.com>> said: > >> +1 >> >> 2009/11/4 Schwab,Wilhelm K >> mailto:bsch...@anest.ufl.edu>>: >>> +10 >>> >>> >>> >>> -Original Message- >>> From: >>> pharo-project-boun...@lists.gforge.inria.fr<mailto:pharo-project-boun...@lists.gforge.inria.fr> >>> [mailto:pharo-project-boun...@lists.gforge.inria.fr<mailto:pharo-project-boun...@lists.gforge.inria.fr>] >>> On Behalf Of Lukas Renggli >>> Sent: Wednesday, November 04, 2009 3:25 AM >>> To: Pharo Development >>> Subject: [Pharo-project] Underscore assignments >>> >>> I wonder if we should throw a deprecated message in Pharo 1.0 when >>> somebody tries to compile a method with an underscore assignment? I >>> would like to make it possible to use underscore characters in >>> selectors and identifiers in Pharo 1.1. >>> >>> Cheers, >>> Lukas >>> >>> -- >>> Lukas Renggli >>> http://www.lukas-renggli.ch >>> >>> ___ >>> Pharo-project mailing list >>> Pharo-project@lists.gforge.inria.fr<mailto: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<mailto: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<mailto: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<mailto: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<mailto: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
Re: [Pharo-project] Underscore assignments
Lukas Renggli wrote: > Supporting underscore identifiers and assignments at the same time > seems to be tricky, as there are all kinds of new ambiguities: > a_1negated could be an assignment of 1 negated to a, or an access of > the variable a_1negated :-/ GemStone has supported both for the past couple of years. The rule we use is that _ must have whitespace on both sides to be considered assignment, otherwise it's part of a selector or variable name. This allowed us to continue using _ in selectors and variables, which we'd allowed from the very beginning, and made it easier to port Squeak code to GemStone. I'm not sure we've run across *any* code in actual use that uses underscore assignment without surrounding it with whitespace; certainly most code does put whitespace around assignments. Regards, -Martin ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Underscore assignments
I probably better go to bed now. In this case I am blind too. Eliot already implemented this, we should just "enable the disabling of underscore assignments" as fast as possible: Preferences disable: #allowUnderscoreAssignment Cheers, Lukas 2009/11/4 Martin McClure : > Lukas Renggli wrote: > >> Supporting underscore identifiers and assignments at the same time >> seems to be tricky, as there are all kinds of new ambiguities: >> a_1negated could be an assignment of 1 negated to a, or an access of >> the variable a_1negated :-/ > > GemStone has supported both for the past couple of years. The rule we > use is that _ must have whitespace on both sides to be considered > assignment, otherwise it's part of a selector or variable name. > > This allowed us to continue using _ in selectors and variables, which > we'd allowed from the very beginning, and made it easier to port Squeak > code to GemStone. > > I'm not sure we've run across *any* code in actual use that uses > underscore assignment without surrounding it with whitespace; certainly > most code does put whitespace around assignments. > > > Regards, > > -Martin > > ___ > Pharo-project mailing list > Pharo-project@lists.gforge.inria.fr > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > -- Lukas Renggli http://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
Re: [Pharo-project] Underscore assignments
On Nov 4, 2009, at 21:09 , Lukas Renggli wrote: > I probably better go to bed now. In this case I am blind too. Eliot > already implemented this, we should just "enable the disabling of > underscore assignments" as fast as possible: > >Preferences disable: #allowUnderscoreAssignment I did that, but I can still compile assignments with underscores. Do I miss anything? Cheers, Adrian > > Cheers, > Lukas > > 2009/11/4 Martin McClure : >> Lukas Renggli wrote: >> >>> Supporting underscore identifiers and assignments at the same time >>> seems to be tricky, as there are all kinds of new ambiguities: >>> a_1negated could be an assignment of 1 negated to a, or an access of >>> the variable a_1negated :-/ >> >> GemStone has supported both for the past couple of years. The rule we >> use is that _ must have whitespace on both sides to be considered >> assignment, otherwise it's part of a selector or variable name. >> >> This allowed us to continue using _ in selectors and variables, which >> we'd allowed from the very beginning, and made it easier to port >> Squeak >> code to GemStone. >> >> I'm not sure we've run across *any* code in actual use that uses >> underscore assignment without surrounding it with whitespace; >> certainly >> most code does put whitespace around assignments. >> >> >> Regards, >> >> -Martin >> >> ___ >> Pharo-project mailing list >> Pharo-project@lists.gforge.inria.fr >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >> > > > > -- > Lukas Renggli > http://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 ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Underscore assignments
>> Preferences disable: #allowUnderscoreAssignment > > I did that, but I can still compile assignments with underscores. > > Do I miss anything? No, it is me that is totally confused tonight. You also need to evaluate the following expression: (Scanner classPool at: #TypeTable) at: $_ asciiValue put: #xLetter Afterwards you can create classes, inst-vars, methods, etc. that have an underscore inside. Lukas -- Lukas Renggli http://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