Commit 042ab680 authored by andy's avatar andy
Browse files

[project @ 2000-03-30 09:02:12 by andy]

Fixing bug with import privileged clashing with import hidden.
This caused a rather nasty name-leak, where catch from the prelude
was being given the type of catch from Exceptions.

Now, when you use import privileged Prelude (...) you also
need to do import Prelude, allowing you the option of
import Prelude hiding (...).

A bucket load of wibbles will follow in various libraries,
implementing this restriction.
parent ad1b65d2
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
* included in the distribution. * included in the distribution.
* *
* $RCSfile: storage.c,v $ * $RCSfile: storage.c,v $
* $Revision: 1.55 $ * $Revision: 1.56 $
* $Date: 2000/03/24 14:32:03 $ * $Date: 2000/03/30 09:02:12 $
* ------------------------------------------------------------------------*/ * ------------------------------------------------------------------------*/
#include "hugsbasictypes.h" #include "hugsbasictypes.h"
...@@ -1609,7 +1609,7 @@ void nukeModule ( Module m ) ...@@ -1609,7 +1609,7 @@ void nukeModule ( Module m )
ObjectCode* oc2; ObjectCode* oc2;
Int i; Int i;
assert(isModule(m)); assert(isModule(m));
fprintf(stderr, "NUKEMODULE `%s'\n", textToStr(module(m).text)); /*fprintf(stderr, "NUKEMODULE `%s'\n", textToStr(module(m).text)); */
oc = module(m).object; oc = module(m).object;
while (oc) { while (oc) {
oc2 = oc->next; oc2 = oc->next;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment