Re: [Pharo-dev] pragma syntax

2016-07-26 Thread Chris Cunningham
I would hope there are exceptions - at least $. and $; . Otherwise mass chaos would ensue. Search for the method #initializeTypeTable. That should steer you towards what can be in a binary method (everything not specifically called out as something besides #xBinary). -cbc On Tue, Jul 26, 2016 a

Re: [Pharo-dev] pragma syntax

2016-07-26 Thread Peter Uhnák
So binary selector can be any non-alphanumeric symbol? On Tue, Jul 26, 2016 at 9:35 PM, Nicolai Hess wrote: > Thanks Eliot, > > 2016-07-26 21:24 GMT+02:00 Eliot Miranda : > >> Hi Nicolai, >> >> On Tue, Jul 26, 2016 at 12:09 PM, Nicolai Hess >> wrote: >> >>> Hi, >>> >>> is this valid pragma synt

Re: [Pharo-dev] pragma syntax

2016-07-26 Thread Nicolai Hess
Thanks Eliot, 2016-07-26 21:24 GMT+02:00 Eliot Miranda : > Hi Nicolai, > > On Tue, Jul 26, 2016 at 12:09 PM, Nicolai Hess > wrote: > >> Hi, >> >> is this valid pragma syntax: >> >> foo >> >> ^ self >> > > You could say it was ambiguous. With the change to the syntax of binary > selecto

Re: [Pharo-dev] pragma syntax

2016-07-26 Thread Eliot Miranda
Hi Nicolai, On Tue, Jul 26, 2016 at 12:09 PM, Nicolai Hess wrote: > Hi, > > is this valid pragma syntax: > > foo > > ^ self > You could say it was ambiguous. With the change to the syntax of binary selectors in recent years #+> is a binary selector, and so you need whitespace after th

[Pharo-dev] pragma syntax

2016-07-26 Thread Nicolai Hess
Hi, is this valid pragma syntax: foo ^ self (note the closing angle and the +-symbol) The above code is what the pretty printer creates if you pretty-print this code foo ^ self (note the space between #+ and > Or a bug in the parser ? this pragma definition seems to w