Article View: comp.lang.functional
Article #893Re: Help needed with behaviour of SML
From: Steve Knight
Date: Tue, 30 Apr 1991 11:02
Date: Tue, 30 Apr 1991 11:02
14 lines
1098 bytes
1098 bytes
surendar asks about the top-level environment in SML: > Why doesn't it look up at the current > value of the variable 'a'. Why does it store the current value of 'a' in the > function during compilation itself? WHat is the logic behind this? Folks coming from other interactive environments are usually surprised by this unfortunate behaviour. Roughly speaking, being able to redefine existing top-level identifiers allows the possibility of introducing type-errors in previously type-checked functions. There are other arguments which are based on the uniformity of top-level and all other levels. I regard these as spurious. Steve
Technical Details
Message-ID:
<33330003@otter.hpl.hp.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!otter.hpl.hp.com!otter!sfkReferences:
<9104262016.AA28063@enuxha.eas.asu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!otter.hpl.hp.com!otter!sfk From: sfk@otter.hpl.hp.com (Steve Knight) Newsgroups: comp.lang.functional Subject: Re: Help needed with behaviour of SML Message-ID: <33330003@otter.hpl.hp.com> Date: 30 Apr 91 11:02:20 GMT References: <9104262016.AA28063@enuxha.eas.asu.edu> Organization: Hewlett-Packard Laboratories, Bristol, UK. Lines: 14