Re: [Oorexx-devel] Discussion/questions on #730 Allow ::CONSTANT specified as expression

2018-12-18 Thread Rick McGuire
I feel the same way about the parens, but it seems like the solution with the fewest complications. I'm going to proceed with these two options. Rick On Tue, Dec 18, 2018 at 5:12 AM Erich Steinböck wrote: > No parens, old rule, in parens, an expression to be evaluated. >> > I have a general dis

Re: [Oorexx-devel] Discussion/questions on #730 Allow ::CONSTANT specified as expression

2018-12-18 Thread Rick McGuire
On Tue, Dec 18, 2018 at 4:14 AM Rony G. Flatscher wrote: > 2) seems the most flexible/powerful one. > > Constants can be regarded as special attributes that can be accessed in > the class object and in each of its instances. Currently their value is a > symbol. > > As you are envisioning some sor

Re: [Oorexx-devel] Discussion/questions on #730 Allow ::CONSTANT specified as expression

2018-12-18 Thread Erich Steinböck
> > No parens, old rule, in parens, an expression to be evaluated. > I have a general dislike for required parenthesis, but with the documented "symbol treated as a constant" feature I see no other way to do this 2) Perform a complete pass through the class objects initializing the > constants > I

Re: [Oorexx-devel] Discussion/questions on #730 Allow ::CONSTANT specified as expression

2018-12-18 Thread Rony G. Flatscher
2) seems the most flexible/powerful one. Constants can be regarded as special attributes that can be accessed in the class object and in each of its instances. Currently their value is a symbol. As you are envisioning some sort of a method execution to determine the constant value, how about al

[Oorexx-devel] Discussion/questions on #730 Allow ::CONSTANT specified as expression

2018-12-17 Thread Rick McGuire
I admit this is a feature I've wanted for some time but was not sure how to actually do it. Since Erich opened the feature request, I thought I should give it a closer look. I've gotten far enough into this that I believe it can be done, with some restrictions. There are a few items where decisions