upgrade

upgrade - Upgrading to Mosel 2 This document describes the...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
20 April 2007 Dash Optimization Upgrading to Mosel 2 This document describes the differences in language syntax, behaviour and the API between Mosel 2 and previous versions. Language s When a static array is implicitly created as dynamic and all its indexing sets are not empty, all possible entries are automatically created (in previous versions of Mosel this was the case only for ' mpvar ' arrays). s Tuples have been replaced by lists; this may break code that exploited the fact that a tuple is represented by an array. For instance, assuming the procedure ' A ' is declared as follows: procedure A(t:array(range)of integer) the following call works with Mosel 1.6 but cannot be compiled with Mosel 2.0: A([1,2,3]) s The initialization operator ' :: ' must now be used instead of the assignment operator ':=' for initializing arrays. For instance: T:=[1,2,3,4] T(2):=[5,6,7] ! assuming T: array(1. .10) of integer is now written: T::[1,2,3,4] T::(2. .4) [5,6,7] This operator now requires the list of associated index values when indices are not ranges. For instance: T:=[1,2,3,4] ! assuming T:array({'a','b','c','d'}) of integer is now written: T::(['a','b','c','d']) [1,2,3,4] s The compiler now sorts constant sets that are known at compile time. As a consequence the order of
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/02/2010 for the course EMSE 254 taught by Professor Hernanabeledo during the Fall '08 term at GWU.

Page1 / 3

upgrade - Upgrading to Mosel 2 This document describes the...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online