Qbasicnews.com

Full Version: Bug Reports
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
0.I think the "#ESCAPE" define is nice. If I have to use "\\" instead of "\" in all the way, I would be crazy.
1.PYTHON use escape chars from C, but it uses r"\n" to mean "\\n" in C. The "r" makes PYTHON source add the supporting for unicode chars some easily: u"some string" is a unicode string.
2.in PYTHON, both single quotation mark and double quotation mark can be used. for example:
Code:
print 'hello "world"'     --hello "world"
print "hello 'world'"     --hello 'world'
and 3 double quotation marks can be used in a block of string:
Code:
print """
2nd line         <----yes, the 1st line is blank here
'something'
"""                #this ends the block
gives
Code:
2nd line         <----yes, the 1st line is blank here
'something'

Just my suggestions, how about mix #ESCAPE define, PYTHON styled strings together? I do think the 2nd PYTHON feature makes programmer less type( why do we use double quotation mark so much? a double quotation mark=a single quotation mark + SHIFT key)
retsyo, you're bound and determined to get Python into FB. Big Grin

What I think many people are forgetting here is that in virtually all languages, the way a string is represented depends on the function that's using that string...
Haha, sorry guys Wink
SDL_PixelFormat in inc\sdl\sdlvideo.bi is wrong.

Change this, in inc\sdl\sdlvideo.bi:
Code:
type SDL_PixelFormat
    BitsPerPixel as ubyte
    BytesPerPixel as ubyte
To this:
Code:
type SDL_PixelFormat
    pal as SDL_Palette ptr
    BitsPerPixel as ubyte
    BytesPerPixel as ubyte
So that it matches this (SDL_video.h):
Code:
typedef struct SDL_PixelFormat {
    SDL_Palette *palette;
    Uint8  BitsPerPixel;
    Uint8  BytesPerPixel;
Nm.. i got all SDL headers translated by Edmond Leung, they will be used on the next release..

Code:
type SDL_PixelFormat
    palette as SDL_Palette ptr
    BitsPerPixel as Uint8
    BytesPerPixel as Uint8
...

That's from his SDL_video..
Quote:i got all SDL headers translated by Edmond Leung
That name sounds vaguely familiar...
I tried googling "Edmond Leung", and apparently he's a celebrity/actor? Or maybe just happens to have the same name?
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...
Wow!!! This is definitely renaissance!!!
Code:
fbc emptyfile.bas
fbc -dll otheremptyfile.bas

Fun fun, how about a check?

Files exist, but are empty, 0 bytes.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30