interactive.print_env passes ctor names as varname

Bug #700862 reported by Matt Giuca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mars
Fix Released
Medium
Matt Giuca

Bug Description

The interactive.print_env predicate wraps all globals and ctors in gvname() and passes them to executor.show_var. Constructor names should never be in gvname(); code doesn't normally expect this to work.

It does work for interpret.show_var (since the interpret similarly places ctor names in gvname(), but that isn't a major problem because it's self-contained within that module), but it won't necessarily work for other backends.

Add a separate executor function executor.show_ctor which shows ctors without evaluating thunks (if the backend uses thunks for constructors).

Related branches

Matt Giuca (mgiuca)
description: updated
Revision history for this message
Matt Giuca (mgiuca) wrote :

As of trunk r1178, the executor interface has been refactored and it now passes strings to executor.show_global (without wrapping in gvname). This has the same problem though -- globals are indistinguishable from ctors.

description: updated
Revision history for this message
Matt Giuca (mgiuca) wrote :

Fixed in trunk r1179.

Changed in mars:
status: Triaged → Fix Committed
Matt Giuca (mgiuca)
Changed in mars:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.