equal
deleted
inserted
replaced
39 |
39 |
40 (* add_path *) |
40 (* add_path *) |
41 |
41 |
42 fun add_path reset s = |
42 fun add_path reset s = |
43 let val sess = ! session @ [s] in |
43 let val sess = ! session @ [s] in |
44 (case gen_duplicates (op =) sess of |
44 (case duplicates (op =) sess of |
45 [] => (session := sess; session_path := ((if reset then [] else ! session_path) @ [s])) |
45 [] => (session := sess; session_path := ((if reset then [] else ! session_path) @ [s])) |
46 | dups => error ("Duplicate session identifiers " ^ commas_quote dups ^ " in " ^ str_of sess)) |
46 | dups => error ("Duplicate session identifiers " ^ commas_quote dups ^ " in " ^ str_of sess)) |
47 end; |
47 end; |
48 |
48 |
49 |
49 |