Fix for A=<<1>>
Robert Virding
robert.virding@REDACTED
Mon May 26 23:31:02 CEST 2003
Forgot to say sorry for the delay in answering but I haven't been connected for a while.
Robert
P.S. But the idea is still a bad one.-)
----- Original Message -----
From: "Raimo Niskanen" <raimo.niskanen@REDACTED>
To: <erlang-questions@REDACTED>
Sent: Monday, May 05, 2003 1:24 PM
Subject: Re: Fix for A=<<1>>
> Alright, fixed for any number of '<' characters. It was a rather simple
> change. There should be no bad consequences for neither execution time
> nor memory consumption either, it was just to count the '<' characters
> and generate the tokens at the end of the sequence.
>
> If the change breaks anything in our daily build and test runs I will
> let you know. Otherwise the change will come in R9C.
>
> / Raimo Niskanen, Erlang/OTP, Ericsson AB
>
>
>
> Ulf Wiger wrote:
> > On Mon, 5 May 2003, Raimo Niskanen wrote:
> >
> >
> >>But since sub-binaries are allowed when constructing: how
> >>about '=<<<<<' as in "if A =< << <<1>>/binary, 2>>", then
> >>one can see that the scanning of '=<<' depends on if the
> >>number of '<' characters following is odd or even, so the
> >>scanner might have to scan infinitely ahead. A look ahead
> >>scan of limited small length would be fine, but this is
> >>ugly.
> >
> >
> > I'm not sure what the upper limit would be for a sequence of
> > '<' symbols in a program making any qlaims of still being
> > useable (one of course has to take into account generated
> > code, which is usually less readable than hand-written
> > code.)
> >
> > Perhaps a stupid question, but, so what if the scanner looks
> > ahead and breaks for safety at, say, 1000 tokens? This won't
> > cause any big problems as far as memory is concerned, and at
> > least I find it difficult to envision a program that would
> > break because of this, that is still worthy of being
> > compiled.
> >
> > The following syntactically correct expression would no
> > longer work (line breaks added for nettiquette compliance).
> > I'm prepared to say "so what?":
> >
> > A =<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<1>>
> > /binary,2>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>/binary>>/binary>>/binary>>/binary>>/binary>>
> > /binary>>.
> >
> > /Uffe
>
>
More information about the erlang-questions
mailing list