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

Re: [ID 20000403.009] uninitialised concatenation???

Dan Sugalski
April 4, 2000 07:17
Re: [ID 20000403.009] uninitialised concatenation???
Message ID:
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


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.


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai                         have teddy bears and even
                                      teddy bears get drunk Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About