[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2008-03-06T07:39:41-05:00 http://www.petesqbsite.com/phpBB3/app.php/feed/topic/2617 2008-03-06T07:39:41-05:00 2008-03-06T07:39:41-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=16806#p16806 <![CDATA[fblite: -lang deprecated revival]]> Statistics: Posted by Mentat — Thu Mar 06, 2008 7:39 am


]]>
2008-03-06T07:31:46-05:00 2008-03-06T07:31:46-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=16805#p16805 <![CDATA[fblite: -lang deprecated revival]]>
The fblite dialect has been added to the compiler (in SVN), and it's looking solid so far, imo. I checked out OHRRPGCE, which is currently using 0.18.x(deprecated) for their project. With a minor change to their source (~4 lines, due to use of scopes), it compiled(~50K LOC) and ran. I think that's a pretty good test case.

Mentat, I think the focus will be on making the dialect stable. Of course, new features are nice so maybe in future, I dunno. However, bit-fields are currently supported in UDT's:

Code:

'' compile with fb/fblitetype DoubleNibble  LoBits:4 as ubyte  HiBits:4 as ubyteend typedim x as DoubleNibblex.LoBits = 3x.HiBits = 5'' show the bitsprint "HHHHLLLL"print bin( *cast( ubyte ptr, @x ), 8 )'' OUTPUT:'' HHHHLLLL'' 01010011

Statistics: Posted by coderJeff — Thu Mar 06, 2008 7:31 am


]]>
2008-03-06T03:23:01-05:00 2008-03-06T03:23:01-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=16804#p16804 <![CDATA[fblite: -lang deprecated revival]]> Statistics: Posted by SMC — Thu Mar 06, 2008 3:23 am


]]>
2008-03-05T22:01:36-05:00 2008-03-05T22:01:36-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=16803#p16803 <![CDATA[fblite: -lang deprecated revival]]> Or a four bit variable can be used for a range of 0-15, which also has uses. Just a suggestion, for lite variables.

Statistics: Posted by Mentat — Wed Mar 05, 2008 10:01 pm


]]>
2008-03-05T09:06:34-05:00 2008-03-05T09:06:34-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=16801#p16801 <![CDATA[fblite: -lang deprecated revival]]>
> Will all the new non-oop stuff be available?
Yes, data types (32-bit integer, byte, short, pointers, etc) will be same as fb dialect, plus multithreading, ImageCreate, anonymous types, and all that jazz should work. The main change is to scopes, which makes fblite have the exact same scoping rules as QB (and fbc-0.15 except for explicit SCOPE block).

> Also, will variables outside of procedures be considered global?
Not by default. Just like in qb/fb, must use SHARED to make variables visible to the entire module, and COMMON (or EXTERN) to make variables visible to other modules. That hasn't changed.

> Give me an example of what you meant by initializers working like assignments.
Output of this sample program same as in fbc-0.15:

Code:

'' compile with fbc -lang fblitedefint a-zsub test  print "---- Initial Values  print " i", " j", " k"  goto thereback:  print "---- FOR NEXT  for i = 1 to 3    '' i has proc scope (defaults to 0)    dim k           '' k has proc scope (defaults to 0)    dim j = 10      '' j has proc scope (defaults to 0)                    '' but assigned to 10 each time this                    '' line encountered    k = k + 1    j = j + 1    print i, j, k  next i  print "---- After FOR NEXT  print i, j, k  exit subthere:  print i, j, k  goto backend subtest
OUTPUT:

Code:

---- Initial Values i             j             k 0             0             0---- FOR NEXT 1             11            1 2             11            2 3             11            3---- After FOR NEXT 4             11            3

> That brings up another question. Do you think it will be possible to give the other data types some kind of shorthand notation?
Technically possible? Proabably. But it was never discussed. Just the QB ones ( % & ! # $ ) are supported.

Statistics: Posted by coderJeff — Wed Mar 05, 2008 9:06 am


]]>
2008-03-05T03:44:48-05:00 2008-03-05T03:44:48-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=16800#p16800 <![CDATA[fblite: -lang deprecated revival]]> Statistics: Posted by SMC — Wed Mar 05, 2008 3:44 am


]]>
2008-03-04T14:53:42-05:00 2008-03-04T14:53:42-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=16797#p16797 <![CDATA[fblite: -lang deprecated revival]]>
Same as fbc-0.15 (or current deprecated dialect) except the following:

1) Proposed dialect name is 'fblite'. To use it, pass '-lang fblite' on the command line to fbc
2) implicit variables have procedure scope
3) DIM'ed variables have procedure scope
4) no explicit SCOPE blocks
5) initializers work like assignments
6) GOSUB, but later (possibly much later)

After discussing the issue at length, we have determined that -lang deprecated exactly as it is, would be too complex to support long term and eventually it must be removed. Also we thought it too confusing to have different scoping rules in every dialect. Thanks to everyone that tried out -lang deprecated. The feedback was very helpful in our discussions.

I don't know how long it will be before this is "official" since we are still determining how much work it is going to take.

Comments or questions?

Statistics: Posted by coderJeff — Tue Mar 04, 2008 2:53 pm


]]>