Qbasicnews.com
May 21, 2022, 03:22:10 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: 1 ... 16 17 [18] 19 20
  Print  
Author Topic: Bug Reports  (Read 83477 times)
adosorken
*/-\*
*****
Posts: 3655



WWW
« Reply #255 on: January 13, 2005, 04:42:53 PM »

Quote from: "v3cz0r"
i got all SDL headers translated by Edmond Leung

That name sounds vaguely familiar...
Logged

I'd knock on wood, but my desk is particle board.
Sterling Christensen
Na_th_an
*****
Posts: 1328


« Reply #256 on: January 13, 2005, 07:51:08 PM »

I tried googling "Edmond Leung", and apparently he's a celebrity/actor? Or maybe just happens to have the same name?
Logged
adosorken
*/-\*
*****
Posts: 3655



WWW
« Reply #257 on: January 13, 2005, 08:30:09 PM »

Okay wait a second...I knew his name sounded familiar...I've been looking for this guy for YEARS now since he disappeared. It's Dae Breaker! He was the founder of Bizzare Creations (the Kalderan project) and was a member of LSS when it was in its first incarnation. But then he just sorta disappeared...
Logged

I'd knock on wood, but my desk is particle board.
relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #258 on: January 14, 2005, 02:15:33 AM »

Wow!!! This is definitely renaissance!!!
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
Z!re
*/-\*
*****
Posts: 4599


« Reply #259 on: January 16, 2005, 01:50:26 PM »

Code:
fbc emptyfile.bas
fbc -dll otheremptyfile.bas


Fun fun, how about a check?

Files exist, but are empty, 0 bytes.
Logged
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #260 on: January 16, 2005, 02:06:15 PM »

Quote from: "relsoft"
Wow!!! This is definitely renaissance!!!


Sure. Noticed how many QB legends are making appearance? Angelo, Jonge... Tongue
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
aetherfox
Been there, done that
*****
Posts: 1071



WWW
« Reply #261 on: January 16, 2005, 02:44:58 PM »

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."
Logged

~''i|~thrFx~|i''~-  
avinash.vora - http://www.avinashv.net
Z!re
*/-\*
*****
Posts: 4599


« Reply #262 on: January 16, 2005, 10:44:15 PM »

This code crash:
Code:
Sub LUT_Init (SINPrecission As uinteger = 2, COSPrecission As uinteger = 2, SQRRange as uinteger = 262144, SQRPrecission as uinteger = 1)
If Initialized = 1 Then exit Sub
Initialized = 1
SINp = 10 ^ SINPrecission
COSp = 10 ^ COSPrecission
SQRp = 10 ^ SQRPrecission
SQRr = SQRRange

dim shared SIN_LUT(360*SINp) As LUT_Type
dim shared COS_LUT(360*COSp) As LUT_Type
dim shared SQR_LUT(SQRr*SQRp) As LUT_Type
SQRr = SQRRange*SQRp   '# <- This row crash
End Sub


This code works:
Code:
Sub LUT_Init (SINPrecission As uinteger = 2, COSPrecission As uinteger = 2, SQRRange as uinteger = 262144, SQRPrecission as uinteger = 1)
If Initialized = 1 Then exit Sub
Initialized = 1
SINp = 10 ^ SINPrecission
COSp = 10 ^ COSPrecission
SQRp = 10 ^ SQRPrecission
SQRr = SQRRange

dim shared SIN_LUT(360*SINp) As LUT_Type
dim shared COS_LUT(360*COSp) As LUT_Type
dim shared SQR_LUT(SQRr*SQRp) As LUT_Type
SQRr = SQRr * SQRp
End Sub


Any ideas?
Logged
v3cz0r
I hold this place together
*****
Posts: 924



WWW
« Reply #263 on: January 17, 2005, 01:29:51 AM »

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..
Logged

relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #264 on: January 17, 2005, 04:44:37 AM »

How about static asn in.

Static dim array(1000) as integer


We may need those in glvertex arrays. :*)
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
Z!re
*/-\*
*****
Posts: 4599


« Reply #265 on: January 17, 2005, 06:55:54 AM »

Quote from: "v3cz0r"
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..


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.
Logged
v3cz0r
I hold this place together
*****
Posts: 924



WWW
« Reply #266 on: January 17, 2005, 11:26:25 AM »

Rel: you can use STATIC with arrays too, they are allowed with FB,
Code:
static array(1000) as integer
will work.

Z!re: the "right" way would be:

Code:
dim shared myarray() as mytype
at module level.

and
Code:
redim myarray(...) as mytype
at proc level.

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.
Logged

relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #267 on: January 18, 2005, 04:55:47 AM »

How about "WITH" for us lazy bastards.  VB has it so why not FB?

Code:
With StructureType

     .x= 1
     .y=2
     .x =300
     .id = "Blah"

End With
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #268 on: January 18, 2005, 06:03:59 AM »

Quote from: "relsoft"
How about "WITH" for us lazy bastards.  VB has it so why not FB?

Code:
With StructureType

     .x= 1
     .y=2
     .x =300
     .id = "Blah"

End With


Count my vote for this Tongue Another niceness from VB. You added BYREF and OPTION EXPLICIT, so why not? Wink
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
v3cz0r
I hold this place together
*****
Posts: 924



WWW
« Reply #269 on: January 18, 2005, 12:00:52 PM »

Look at the CVS ;)

Quote
2 days  v1ctor  WITH added


No multiple var's WITH, as they are bad pratic, imo..
Logged

Pages: 1 ... 16 17 [18] 19 20
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!