On Fri, 18 Jun 1999, M. Uli Kusterer wrote:
> >This topic came up before, and I think the concensus was that we were
> >going to allow it in a couple of other places too:
> >local somevar = "some value"
> >constan someconstant = "some value"
>
> Scott,
>
> well, I hate maths, but it's already in the language, so we could put it
> in there. But please don't allow writing a line like
>
> myVar = 15
>
> as an alternative to
>
> put 15 into myVar
Well, the temptation is always there for later...
> >Agreed. Though something like this would be nice to have.
>
> I have to admit that re-reading this I don't get what the interpreter
> would do when I say delimiter "a", "b" or "c" ??? Three delimiters at
> once??? Huh?
I would guess this would mean that the item could be delimited by any
of those three characters. For example, if you didn't know what the
path character was, you could do something like:
put last item by ":" or "/" or "\" of mypath into fname
> >And unfortunately pretty painful to implement ;-)
>
> What's so painful about multi-character delimiters? OK, you need to
> account for more than a single char, but it isn't really a problem, right?
The code for MetaCard's "is among the items of x" feature is very
complex now, and adding backtracking for multiple character delimiters
would make it even more horrendous. MetaCard has code for this kind
of thing already (read from file x until "whatever"), and that's
pretty hairy all by itself. And while this kind of thing is handy for
reading from files and doing protocol with other programs, I can't
think of any problems that would be a whole lot easier to solve if we
supported it for item chunks.
Regards,
Scott
> Cheers,
> -- M. Uli Kusterer
>
> ------------------------------------------------------------
> http://www.weblayout.com/witness
> 'The Witnesses of TeachText are everywhere...'
>
> --- HELP SAVE HYPERCARD: ---
> Details at: http://www.hyperactivesw.com/SaveHC.html
> Sign: http://www.giguere.uqam.ca/petition/hcpetition.html
>
>
********************************************************
Scott Raney [EMAIL PROTECTED] http://www.metacard.com
MetaCard: You know, there's an easier way to do that...