delete chunk.

Mike Bonner bonnmike at gmail.com
Wed Nov 3 14:09:24 EDT 2010


Hmm. I get your point, and now I think I have a little bit of gray leaking
out my left ear.  If you look at it as if the delimiter is both an
instigator AND a terminator, then if you have a var with "," in it, it seems
like it should be 2 empty (and pointless) items. I had been thinking that it
could be considered an instigator only with an assumed delimiter before the
first item, but then as you say, empty isn't empty, empty would be 1 empty
item.

This also explains why I will never ever write my own intepreter/compiler.
Too many things I will never understand well enough. Love trying to get my
head around things, failure to do so can be as educational as success if not
more so.

On Wed, Nov 3, 2010 at 11:56 AM, Jonathan Lynch <jonathandlynch at gmail.com>wrote:

> So think about this.
>
> If we only regard the delimiter as a delimiter between items (rather than a
> terminator), then how would we have a container with zero items?
>
> I mean, if 1 delimiter indicates the presence of two items, then zero
> delimiters would indicate one item.
>
> would an empty container have zero items, or one item that is empty?
>
> On Wed, Nov 3, 2010 at 1:33 PM, J. Landman Gay <jacque at hyperactivesw.com
> >wrote:
>
> > On 11/3/10 10:41 AM, Mike Bonner wrote:
> >
> > Having said all this, there is most likely a reason it is the way it is
> >> that
> >> I don't have enough knowledge to understand.  As with removing trailing
> >> carriage returns, if it's a null item it isn't difficult to work around
> >> and
> >> i'm not sure I can come up with a valid reason for actually having an
> >> empty
> >> item, but that doesn't mean there isn't a use for it.  /shrug
> >>
> >
> > It may be the difference between seeing the delimiter as a terminating
> > character or as a dividing character. If you consider the comma or return
> as
> > a terminator, then it is "attached" to the preceding string. If that
> entry
> > is empty, there is nothing to terminate and the engine removes it.
> >
> > --
> >  Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> > HyperActive Software           |     http://www.hyperactivesw.com
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
>
>
>
> --
> Do all things with love
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list