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 - na_th_an - 01-16-2005 Quote:Wow!!! This is definitely renaissance!!! Sure. Noticed how many QB legends are making appearance? Angelo, Jonge... Bug Reports - aetherfox - 01-16-2005 I don't think that fB should start adding features from other languages...like Python... It's a BASIC derivative, and the idea is to have a 32-bit BASIC language that most closely represents good old Quick Basic. There shouldn't (now) be the tendency to say "Hey, C/C++/ObjPascal/(why)Python does this, we should too." Bug Reports - Z!re - 01-17-2005 This code crash: Code: Sub LUT_Init (SINPrecission As uinteger = 2, COSPrecission As uinteger = 2, SQRRange as uinteger = 262144, SQRPrecission as uinteger = 1) This code works: Code: Sub LUT_Init (SINPrecission As uinteger = 2, COSPrecission As uinteger = 2, SQRRange as uinteger = 262144, SQRPrecission as uinteger = 1) Any ideas? Bug Reports - v3cz0r - 01-17-2005 What you mean by crash, that happens at runtime or the compiler crashes? I couldn't reproduce the error, but you shouldn't be allowed to use DIM|REDIM and then SHARED inside procs, patch will be next release.. Bug Reports - relsoft - 01-17-2005 How about static asn in. Static dim array(1000) as integer We may need those in glvertex arrays. :*) Bug Reports - Z!re - 01-17-2005 Quote:What you mean by crash, that happens at runtime or the compiler crashes? Crash at runtime, and I think it's good that you can dim shared, as this enables you to dim inside DLLs. The dims should be redims, but i changed it for debug purpose. And having the ability to redim a shared array inside a function is a good thing, imo. Anyways, the problem is when I use: blah as type = value And then try to use blah in math. Compiles fine, but crash on runtime. And this is a DLL. Bug Reports - v3cz0r - 01-17-2005 Rel: you can use STATIC with arrays too, they are allowed with FB, Code: static array(1000) as integer Z!re: the "right" way would be: Code: dim shared myarray() as mytype and Code: redim myarray(...) as mytype That's how it's done in QB.. a DIM SHARED inside a function will open it to memory leaks as that array is "impossible" to erase implicitly or explicitly in other routines later. When you create a dynamic *local* array inside a proc the compiler will erase them automagically when the proc finish - if you are DIM'ing a shared array that won't be done, it's up the the user to call ERASE at a shutdown() proc or such. Bug Reports - relsoft - 01-18-2005 How about "WITH" for us lazy bastards. VB has it so why not FB? Code: With StructureType Bug Reports - na_th_an - 01-18-2005 Quote:How about "WITH" for us lazy bastards. VB has it so why not FB? Count my vote for this Another niceness from VB. You added BYREF and OPTION EXPLICIT, so why not? Bug Reports - v3cz0r - 01-18-2005 Look at the CVS ;) Quote:2 days v1ctor WITH added No multiple var's WITH, as they are bad pratic, imo.. |