| author | wenzelm | 
| Sun, 26 Jul 2009 13:21:12 +0200 | |
| changeset 32201 | 3689b647356d | 
| parent 31427 | 5a07cc86675d | 
| child 32294 | d00238af17b6 | 
| permissions | -rw-r--r-- | 
| 2341 | 1 | (* Title: Pure/ML-Systems/polyml.ML | 
| 2 | ||
| 31312 | 3 | Compatibility wrapper for Poly/ML 5.2 and 5.2.1. | 
| 2341 | 4 | *) | 
| 5 | ||
| 28152 | 6 | open Thread; | 
| 30672 
beaadd5af500
more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
 wenzelm parents: 
30627diff
changeset | 7 | |
| 
beaadd5af500
more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
 wenzelm parents: 
30627diff
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: 
30627diff
changeset | 9 | struct | 
| 
beaadd5af500
more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
 wenzelm parents: 
30627diff
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: 
30627diff
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: 
30627diff
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: 
30627diff
changeset | 13 | end; | 
| 
beaadd5af500
more systematic type use_context, with particular values ML_Parse.global_context and ML_Context.local_context;
 wenzelm parents: 
30627diff
changeset | 14 | |
| 31427 
5a07cc86675d
reraise exceptions to preserve original position (ML system specific);
 wenzelm parents: 
31313diff
changeset | 15 | fun reraise exn = raise exn; | 
| 
5a07cc86675d
reraise exceptions to preserve original position (ML system specific);
 wenzelm parents: 
31313diff
changeset | 16 | |
| 26215 
94d32a7cd0fb
rearrangements to make latest Poly/ML the default, not old 4.x;
 wenzelm parents: 
26084diff
changeset | 17 | use "ML-Systems/polyml_common.ML"; | 
| 28676 
78688a5fafc2
multithreading support only for polyml-5.2.1 or later;
 wenzelm parents: 
28268diff
changeset | 18 | |
| 28796 
56cb4130177a
multithreading support for polyml-5.2 actually disabled -- as advertized;
 wenzelm parents: 
28676diff
changeset | 19 | if ml_system = "polyml-5.2" | 
| 
56cb4130177a
multithreading support for polyml-5.2 actually disabled -- as advertized;
 wenzelm parents: 
28676diff
changeset | 20 | then use "ML-Systems/thread_dummy.ML" | 
| 28676 
78688a5fafc2
multithreading support only for polyml-5.2.1 or later;
 wenzelm parents: 
28268diff
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: 
26084diff
changeset | 22 | |
| 
94d32a7cd0fb
rearrangements to make latest Poly/ML the default, not old 4.x;
 wenzelm parents: 
26084diff
changeset | 23 | val pointer_eq = PolyML.pointerEq; | 
| 23921 
947152add153
added compatibility file for ML systems without multithreading;
 wenzelm parents: 
23826diff
changeset | 24 | |
| 29638 
1f8f3d26a2cf
added share_common_data -- reduces heap space, but takes long;
 wenzelm parents: 
29564diff
changeset | 25 | fun share_common_data () = PolyML.shareCommonData PolyML.rootFunction; | 
| 
1f8f3d26a2cf
added share_common_data -- reduces heap space, but takes long;
 wenzelm parents: 
29564diff
changeset | 26 | |
| 31312 | 27 | use "ML-Systems/compiler_polyml-5.2.ML"; | 
| 31313 | 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: 
29638diff
changeset | 29 |