Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Error list
Mon, Sep 19 2016 7:42 AMPermanent Link

Michael Dreher

Some errors I came across.

1)
I've made a programming error, redefining an enumeration name.

type
 TEnum = (e1,e2,e3,e1,e4,e5); // e1 is duplicated

Surprisingly it compiles without errors or warnings. In the JavaScript output it results in a gap (if all names are referenced in

the code).

// JS:
var unit1_e1 = 0, unit1_e2 = 1, unit1_e3 = 2, unit1_e4 = 4, unit1_e5 = 5; // no 3-value here

Perhaps the compiler could catch this.


2)
In the IDE in the last row of a unit CTRL+y deletes this line. In this state the next "CTRL+y" or "Cursor-Right" results in den "List index out of bounds" error.


3) Help on TColor:
 // Red - The red component is stored in the lower 8 bits of the 32-bit RGBA value (0-7)
 // Blue -The blue component is stored in the next 8 bits of the 32-bit RGBA value (16-23).
But the lower 8 bits is the blue part.


Michael Dreher
Mon, Sep 19 2016 7:54 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

Thanks, I'll make sure that these are fixed in the next build.

Tim Young
Elevate Software
www.elevatesoft.com
Image