Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug Reports
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)
Reply
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...
I'd knock on wood, but my desk is particle board.
Reply
Haha, sorry guys Wink
Reply
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;
Reply
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..
Reply
Quote:i got all SDL headers translated by Edmond Leung
That name sounds vaguely familiar...
I'd knock on wood, but my desk is particle board.
Reply
I tried googling "Edmond Leung", and apparently he's a celebrity/actor? Or maybe just happens to have the same name?
Reply
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...
I'd knock on wood, but my desk is particle board.
Reply
Wow!!! This is definitely renaissance!!!
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
Code:
fbc emptyfile.bas
fbc -dll otheremptyfile.bas

Fun fun, how about a check?

Files exist, but are empty, 0 bytes.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)