Skip to content
basanders edited this page Sep 16, 2014 · 11 revisions

This page describes the changes in Sial V2

Required changes to existing program

  • Blocks now use square brackets instead of parentheses. a(i,j,k,l) --> a[i,j,k,l]
  • Upper and lower bounds of ranges are now separated by a colon instead of a comma. aoindex i = 1,norb --> aoindex i = 1:norb
  • An int type has been added to the language (previously int variables had to be predefined). As a consequence, some programs that previously used scalars to hold what are really int values, may want to redefine the types of some variables. Coercion between int and scalar is not longer supported, but this can be achieved by explicit casts. ( (scalar)i or (int)x ). In the current implementation, a cast from scalar to int will round to the nearest int.

New features

Clone this wiki locally