Ticket #64 (closed enhancement: fixed)

Opened 9 months ago

Last modified 7 months ago

Function to see if a global variable is defined

Reported by: JarrettBillingsley Assigned to: JarrettBillingsley
Priority: normal Milestone: MiniD 2
Component: Stdlib Keywords:
Cc:

Description

It would be nice to have a function which could tell you, without throwing an exception, whether a global variable is defined at the calling site.

Change History

04/28/08 22:18:18 changed by JarrettBillingsley

  • milestone set to MiniD 2.

05/03/08 16:03:25 changed by JarrettBillingsley

  • status changed from new to closed.
  • resolution set to fixed.

(In [303]) Closes #64. Fixing this led to some other changes. There was a memory leak before if a function returned some values in a try block, then an exception was thrown in a finally. The issue with isSet not using the right environment has been at least made consistent with changes to the MDState.environment method, which now sees if the environment you're trying to get has been lost due to a tailcall. eval and loadString might be further changed because of this.