develooper Front page | perl.perl5.porters | Postings from April 2000

Re: [ID 20000403.009] uninitialised concatenation???

From:
Dan Sugalski
Date:
April 4, 2000 07:17
Subject:
Re: [ID 20000403.009] uninitialised concatenation???
Message ID:
4.3.0.20000404101328.018e1d30@24.8.96.48
At 08:11 AM 4/4/00 -0600, Tom Christiansen wrote:
> >Would a satisfactory approach be for the error message to be couched in
> >terms of the source,
>
>Perhaps, except that we're talking interpreter warnings, not compiler
>warnings.  The compiler knows about three-part for loops; the
>interpreter does not.  Likewise, the compiler knows about string
>and array and slice interpolation; the interpreter does not.

Then we need to either:

A) Post in big bold letters someplace that internal optimizations may make 
the errors they get at runtime a little odd

or

B) Attach enough hint info to the optree to emit errors correct for the 
original program text

A's easier, B's better but more expensive both in compile time and porter 
time. If the optimizer gets seriously attacked, though, it might be worth it.

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About