Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/HISTORY
ViewVC logotype

Diff of /sml/trunk/HISTORY

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1619, Wed Sep 8 18:19:45 2004 UTC revision 1633, Tue Sep 28 03:08:33 2004 UTC
# Line 14  Line 14 
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16  Name: Matthias Blume (blume (at) tti - c (dot) org)  Name: Matthias Blume (blume (at) tti - c (dot) org)
17    Date: 2004/09/27 22:08:00 CDT
18    Tag: blume-20040927-controls
19    Description:
20    
21    Added two pieces of functionality to the Controls interface:
22    
23    1.   val save'restore: 'a control -> unit -> unit
24    
25       grabs the current value of the control in stage 1 and restores it
26       in stage 2.
27    
28    2.   val set' : 'a control * 'a -> unit -> unit
29    
30       stores the given value into the control in stage 2 (i.e., delayed)
31       but does all error checking in stage 1.
32       (This is for string controls that need to do parse their argument --
33        something that might fail.  In some cases, notably in CM, one
34        already knows the intended argument but wants to delay the actual
35        assignment until a time when error recovery would be more difficult.)
36    
37    Changed the handling of controls in tool arguments to classes "sml" and
38    "lazysml":
39       - use Controls.save'restore as a more robust way of restoring the
40         old value (in particular: without having to re-parse the string)
41       - use controls to handle the "overload" keyword in the init group
42         (I believe this change actually fixes a long-standing obscure bug.)
43    
44    ----------------------------------------------------------------------
45    Name: Matthias Blume (blume (at) tti - c (dot) org)
46    Date: 2004/09/27 17:00:00 CDT
47    Tag: blume-20040927-lazysml
48    Description:
49    
50    Added a new tool class called "lazysml" to CM's tool chest.  The only
51    difference to "sml" is that compilation is done with Control.lazysml
52    set to true.  A source of class "lazysml" is automatically recognized
53    by a file name suffix of ".lml".
54    
55    In addition to the above feature, the original class "sml" now also
56    supports a tool argument "lazy" which has the same effect.  As a
57    result, the following three lines are equivalent:
58    
59        foo.sml : lazysml
60        foo.sml : sml (lazy)
61        foo.sml (lazy)
62    
63    The setting goes into effect both during parsing and during
64    compilation.  The original setting is restored right after parsing and
65    after compilation, respectively.
66    
67    In addition to all the above, there is also a general mechanism to set
68    ANY of the "controls" that are available at the command line via
69    "-C..." on a per-sml-file basis.  The same rules that apply for "lazy"
70    apply as well. (In fact, "lazy" is implemented as a special case of
71    the general mechanism.)
72    
73    The .cm file syntax uses a new keyword tool argument called "with".
74    There are several ways of indicating the desired settings:
75    
76        foo.sml (with:parser.quotations=true)
77        foo.sml (with:(name:parser.quotations value:true))
78        foo.sml (with:(name:name1 value:value1 name:name2 value:value2 ...))
79        foo.sml (with:(name1=value1 name2=value2 ...))
80        foo.sml (with:(name1=value1 name:name2 value:value2 name3=value3 ...))
81    
82        etc.
83    
84    Another possible abbreviation is to leave out the =v or value:v part
85    if the name refers to a boolean control (in which case the value is
86    taken to be true).  Thus, one could get lazy sml also by saying:
87    
88        foo.sml (with:parser.lazy-keyword=true)
89        foo.sml (with:parser.lazy-keyword)
90        foo.sml (with:(name:parser.lazy-keyword value:true))
91        foo.sml (with:(name:parser.lazy-keyword))
92    
93    ----------------------------------------------------------------------
94    Name: Matthias Blume (blume (at) tti - c (dot) org)
95    Date: 2004/09/24 16:22:00 CDT
96    Tag: blume-20040924-ppc-long-branch
97    Description:
98    
99    Turned message about "emiting long form of branch" off by default.
100    Added a control flag to turn it back on when desired.
101    
102    ----------------------------------------------------------------------
103    Name: Matthias Blume (blume (at) tti - c (dot) org)
104    Date: 2004/09/24 16:05:00 CDT
105    Tag: blume-20040924-rounding
106    Description:
107    
108    Applied patch for setting rounding modes under Mac OS X.  Thanks to
109    Melissa O'Neill for providing the code!
110    
111    ----------------------------------------------------------------------
112    Name: Matthias Blume (blume (at) tti - c (dot) org)
113    Date: 2004/09/23 17:30:00 CDT
114    Tag: blume-20040923-envvars
115    Description:
116    
117    1. Changed definition of type ControlRegistry.registry_tree to
118       include control_info (i.e., the name of the controlling environment
119       variable).
120    
121    2. Added command-line flags -e and -E to print the names of environment
122       variables that can be used to control internal settings.
123       (This uses the new API mentioned in 1.)
124    
125    ----------------------------------------------------------------------
126    Name: Matthias Blume (blume (at) tti - c (dot) org)
127    Date: 2004/09/13 16:50:00 CDT
128    Tag: Release_110_49
129    Description:
130    
131    New working version (110.49).  NEW BOOTFILES!
132    
133    ----------------------------------------------------------------------
134    Name: Matthias Blume
135    Date: 2004/09/13 16:20:00 CDT
136    Tag: blume-20040913-config-mlrisc
137    Description:
138    
139    Put target "mlrisc" back into the default list.
140    (There is no harm in having it, and some users have expressed their
141    wish to have "mlrisc" included by default.)
142    
143    ----------------------------------------------------------------------
144    Name: John Reppy
145    Date: 2004/09/13
146    Tag: jhr-20040913-signals
147    Description:
148    
149    Fixed the signal masking code to properly nest mask/unmask operations
150    on a per-signal basis.
151    
152    ----------------------------------------------------------------------
153    Name: Matthias Blume (blume (at) tti - c (dot) org)
154  Date: 2004/09/08 13:20:00 CDT  Date: 2004/09/08 13:20:00 CDT
155  Tag: blume-20040908-heap-magic  Tag: blume-20040908-heap-magic
156  Description:  Description:

Legend:
Removed from v.1619  
changed lines
  Added in v.1633

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0