src/Pure/ML-Systems/polyml.ML
author wenzelm
Thu, 04 Jun 2009 17:31:38 +0200
changeset 31427 5a07cc86675d
parent 31313 97800f7e80b4
child 32294 d00238af17b6
permissions -rw-r--r--
reraise exceptions to preserve original position (ML system specific);
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2341
e154da40ef00 Compatibility file for Poly/ML (versions 2.x, 3.x).
wenzelm
parents:
diff changeset
     1
(*  Title:      Pure/ML-Systems/polyml.ML
e154da40ef00 Compatibility file for Poly/ML (versions 2.x, 3.x).
wenzelm
parents:
diff changeset
     2
31312
1c00e4ff3c99 more modular setup of runtime compilation;
wenzelm
parents: 30672
diff changeset
     3
Compatibility wrapper for Poly/ML 5.2 and 5.2.1.
2341
e154da40ef00 Compatibility file for Poly/ML (versions 2.x, 3.x).
wenzelm
parents:
diff changeset
     4
*)
e154da40ef00 Compatibility file for Poly/ML (versions 2.x, 3.x).
wenzelm
parents:
diff changeset
     5
28152
c1277547d59f *** empty log message ***
wenzelm
parents: 28125
diff changeset
     6
open Thread;
30672
beaadd5af500 more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
wenzelm
parents: 30627
diff changeset
     7
beaadd5af500 more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
wenzelm
parents: 30627
diff changeset
     8
structure ML_Name_Space =
beaadd5af500 more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
wenzelm
parents: 30627
diff changeset
     9
struct
beaadd5af500 more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
wenzelm
parents: 30627
diff changeset
    10
  open PolyML.NameSpace;
beaadd5af500 more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
wenzelm
parents: 30627
diff changeset
    11
  type T = PolyML.NameSpace.nameSpace;
beaadd5af500 more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
wenzelm
parents: 30627
diff changeset
    12
  val global = PolyML.globalNameSpace;
beaadd5af500 more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
wenzelm
parents: 30627
diff changeset
    13
end;
beaadd5af500 more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
wenzelm
parents: 30627
diff changeset
    14
31427
5a07cc86675d reraise exceptions to preserve original position (ML system specific);
wenzelm
parents: 31313
diff changeset
    15
fun reraise exn = raise exn;
5a07cc86675d reraise exceptions to preserve original position (ML system specific);
wenzelm
parents: 31313
diff changeset
    16
26215
94d32a7cd0fb rearrangements to make latest Poly/ML the default, not old 4.x;
wenzelm
parents: 26084
diff changeset
    17
use "ML-Systems/polyml_common.ML";
28676
78688a5fafc2 multithreading support only for polyml-5.2.1 or later;
wenzelm
parents: 28268
diff changeset
    18
28796
56cb4130177a multithreading support for polyml-5.2 actually disabled -- as advertized;
wenzelm
parents: 28676
diff changeset
    19
if ml_system = "polyml-5.2"
56cb4130177a multithreading support for polyml-5.2 actually disabled -- as advertized;
wenzelm
parents: 28676
diff changeset
    20
then use "ML-Systems/thread_dummy.ML"
28676
78688a5fafc2 multithreading support only for polyml-5.2.1 or later;
wenzelm
parents: 28268
diff changeset
    21
else use "ML-Systems/multithreading_polyml.ML";
26215
94d32a7cd0fb rearrangements to make latest Poly/ML the default, not old 4.x;
wenzelm
parents: 26084
diff changeset
    22
94d32a7cd0fb rearrangements to make latest Poly/ML the default, not old 4.x;
wenzelm
parents: 26084
diff changeset
    23
val pointer_eq = PolyML.pointerEq;
23921
947152add153 added compatibility file for ML systems without multithreading;
wenzelm
parents: 23826
diff changeset
    24
29638
1f8f3d26a2cf added share_common_data -- reduces heap space, but takes long;
wenzelm
parents: 29564
diff changeset
    25
fun share_common_data () = PolyML.shareCommonData PolyML.rootFunction;
1f8f3d26a2cf added share_common_data -- reduces heap space, but takes long;
wenzelm
parents: 29564
diff changeset
    26
31312
1c00e4ff3c99 more modular setup of runtime compilation;
wenzelm
parents: 30672
diff changeset
    27
use "ML-Systems/compiler_polyml-5.2.ML";
31313
97800f7e80b4 renamed polyml_pp.ML to pp_polyml.ML;
wenzelm
parents: 31312
diff changeset
    28
use "ML-Systems/pp_polyml.ML";
30627
fb9e73c01603 added polyml_pp.ML: toplevel pretty printing for Poly/ML 4.x and 5.x before 5.3;
wenzelm
parents: 29638
diff changeset
    29