cannot disable two functions with the same name

Bug #1006166 reported by Matthias Brantner
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
High
Markos Zaharioudakis

Bug Description

Disabling two functions (using StaticContext::disableFunction) with the same name but different arities is currently not possible. Only the first version of the function is actually disabled.

The problem seems to be in static_context::unbind_fn where only the FunctionInfo for the first function is inserted into the vector.

Revision history for this message
Markos Zaharioudakis (markos-za) wrote :

The StaticContext::disableFunction function is not documented at all. So, I have a question: it is supposed to work only for functions that are registered in the root static context (i.e., builtin function), right?

Changed in zorba:
status: New → In Progress
Changed in zorba:
importance: Undecided → High
milestone: none → 2.7
Changed in zorba:
status: In Progress → Fix Committed
Changed in zorba:
milestone: 2.7 → 2.6
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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