Page 1 of 1

Racalac's Escript guide for pol098 fix

Posted: Thu Aug 20, 2009 1:22 am
by Gnafu
Someone must change

Code: Select all

var a := dictionary;                         // empty dictionary
var b := struct{"height", "width"};          // dictionary with indexes that have no values.
var c := struct{"height"->5, "width"->100};  // dictionary with indexes and values.
to

Code: Select all

var a := dictionary;                         // empty dictionary
var b := dictionary{"height", "width"};          // dictionary with indexes that have no values.
var c := dictionary{"height"->5, "width"->100};  // dictionary with indexes and values.
Declaring a dictionary by a struct ends in an error:

Code: Select all

Token 'Unknown Token: (307,8,'->')' unexpected in struct initializer list
Error reading members for struct

Thank you :D

Re: Racalac's Escript guide for pol098 fix

Posted: Thu Aug 20, 2009 2:33 am
by Turley
done