AW: AW: [stringtemplate-interest] Template-Operator []
Dreyer Ulf (CR/APA3)
Ulf.Dreyer at de.bosch.com
Wed Jun 7 22:38:58 PDT 2006
Hi Terence
> On Jun 7, 2006, at 12:31 AM, Dreyer Ulf (CR/APA3) wrote:
> > Another thing I noticed is that first() and rest() functions
> > can not be combined. (as in first(rest(someList)))
> > Is this intentional?
>
> That should work. If not it is a bug. You sure?
Yep - it was a bug.
The all too common "think before you post"-bug (or maybe DEBUG before
you post)
I tried the above construct in the following context
[first(rest(someList))] and expected a list of one element (related to
my last post)
therefore my other check [rest(someList)] DID work *ARGGHHHHHH*
How about an enhancement so that maybe (a) withing []
prevents enumeretion of a.
i.e. [(a),(b),a] yields [a,b,a.1,a.2,a.3...]
(for some very distant future release...)
I will now go to sit in a corner and try not to bother you for
some time ;)
Bye,
Ulf
More information about the stringtemplate-interest
mailing list