Coding and general discussion relating to the compiler
Moderators: David Barker, Jerry Messina
-
Jerry Messina
- Swordfish Developer
- Posts: 1473
- Joined: Fri Jan 30, 2009 6:27 pm
- Location: US
Post
by Jerry Messina » Thu Feb 12, 2009 11:09 am
I ran across a compiler issue while using the following...
Code: Select all
const sHelp() as string =
(
"this is a test of const string array length",
// line is ok...max length (69+1=70)
"123456789012345678901234567890123456789012345678901234567890123456789",
// line is too long (70+1=71)...compiler terminates
"1234567890123456789012345678901234567890123456789012345678901234567890",
"end of array "
)
dim w as word
// do something to reference the array, otherwise it'll be optimized out
w = addressof(sHelp)
It seems to limit the max size of a string to 69 chars. I can deal with this,
but the compiler just silently terminates... it took quite a while to narrow
it down to the offending lines! It'd be nice if it would at least complain about it.
Thanks,
Jerry
-
JWinters
- Posts: 106
- Joined: Mon Feb 04, 2008 4:56 pm
- Location: North Carolina, USA
-
Contact:
Post
by JWinters » Sun Jun 28, 2009 5:38 pm
I know this is post is a few months old, but I'm running into the same problem. I click build and it starts to compile. It eventually shows "Ready" in the bottom left corner of the IDE but it never actually makes a new HEX and there is no error.