Bug Reports - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: General (http://qbasicnews.com/newforum/forum-6.html) +--- Forum: General/Misc (http://qbasicnews.com/newforum/forum-18.html) +--- Thread: Bug Reports (/thread-5202.html) |
Bug Reports - VonGodric - 12-31-2004 no it isn't Code: sub test(text as string * 1) Bug Reports - adosorken - 12-31-2004 Code: IF a>"" [...] Bug Reports - na_th_an - 12-31-2004 It's correct. It is always true except when a is the empty string. Bug Reports - v3cz0r - 12-31-2004 You shouldn't be allowed to declare fixed-len strings on function arguments and function results.. fixed - Von seems to read my mind, i knew that was possible and didn't fix it coz well, i thought nobody would find it out so early :P subxero: actually, you found another bug that i-know-it-could-be-wrong-but-never-tested-it, qword fields (8 bytes long), were being aligned to qword boundary (i thought double's were aligned that way..), they should be aligned to dword boundary, so that WIN32_FIND_DATA will be wrong, 'cause the FILETIME fileds (all 8-byte longs). Fixed, will be on the next release - or already on CVS if you want to compile yourself. Btw, you could do "Type WIN32_FIND_DATA Field=1" by now to "fix" it. Sterling: there's no floor() function on libc but for doubles (only C++ has overlapped ones), so INT() maps to double no matter the source kind, float or double. Btw, happy new year, cyaz.. Bug Reports - Jotz - 01-01-2005 I think this may or may not be a bug. If your screen width is say, 60, and you print something like: PRINT STRING(60, "-") It starts another line in the next row with only 1 character. Bug Reports - VonGodric - 01-01-2005 i think numbers go from 0 to 59 not from 1 to 60 :wink: I may be wrong Bug Reports - Jotz - 01-01-2005 Nope, I'm pretty sure it starts at 1. If I make a line that is 59 characters across it's fine, but theres one blank space in the end. Then putting a character in the last space will shift the row. Is there any alternate waa to making a line all the way across the screen? Bug Reports - v3cz0r - 01-01-2005 PRINT STRING(60, "-"); Printing the same number of chars as the console's width + a newline (PRINT w/o the ending semi-colon), will make it skip one line more. Bug Reports - VonGodric - 01-01-2005 Okay, is it a bug, or is it just wrong? Code: TYPE Test Code: ENUM MyEnum Bug Reports - v3cz0r - 01-01-2005 You can't have any other blocks inside TYPEs but nameless UNION's. Enums are Integers, you can declare arguments and variables as enums and such, but they are not checked if you are really assigning/passing a constant that was part of the enum block -- so you are allowed to do like: myenum = X or Y |