![]() |
type problem (*solved*) - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15) +---- Thread: type problem (*solved*) (/showthread.php?tid=423) |
type problem (*solved*) - slenkar - 02-14-2012 Code: Function distance (x1 as Integer, y1 as Integer, x2 as Integer, y2 as Integer) as Integer When I try to compile it says cant convert to string on line 16 but there are no strings being referred to on that line EDIT- the problem was on line 107 so the compiler was confused Re: type problem - boriel - 02-14-2012 Will try to debug ASAP. NOTE: I'm alive. Just considering rewriting al ZX BASIC *from scratch* ![]() Re: type problem - slenkar - 02-14-2012 ![]() ![]() Re: type problem - britlion - 02-14-2012 ![]() ![]() ![]() Re: type problem - boriel - 02-14-2012 Okay, not from scratch (the lexers modules and preprocessor, and assembler are ok), but almost. It's a huge rewriting... :oops: Re: type problem - slenkar - 02-15-2012 in python? Re: type problem - boriel - 02-15-2012 Yes: If it weren't in python it would be completely from scratch (even the lexer, asm and preprocessors). I guess I would choose C++ otherwise. Re: type problem - boriel - 02-18-2012 Yes, the bug was in line: Code: Print "bresenham over distance "+dist Will try to improve this... Re: type problem - boriel - 02-18-2012 britlion Wrote:I also asked about revamping the site into something more specific to ZX Basic, instead of my blog. :?: (See Poll in the main forum) Re: type problem - LCD - 02-18-2012 boriel Wrote:Yes, the bug was in line:Sounds logical because dist could be DIMed as String, so the compiler is confused. Re: type problem - boriel - 02-21-2012 The error reporting line is now correct. Can you check it? (download 1.2.8 s785 or newer) |