On 26 September 2011 04:45, James Paige <[email protected]> wrote:
> On Sun, Sep 25, 2011 at 11:18:35PM +1300, Ralph Versteegen wrote:
>> On 24 September 2011 04:03, James Paige <[email protected]> wrote:
>> > On Fri, Sep 23, 2011 at 08:50:24AM -0700, [email protected] 
>> > wrote:
>> >> james
>> >> 2011-09-23 08:50:23 -0700 (Fri, 23 Sep 2011)
>> >> 77
>> >> music_sdl.bas was already clean for -lang fb, adding support for 
>> >> TRY_LANG_FB
>> >> ---
>> >> U   wip/music_sdl.bas
>> >
>> > it is now possible to compile:
>> >
>> >  scons game langfb=1
>> >
>> > The resulting exe runs, but is buggy as all heck because of the
>> > byref/byval default change. I feel motivated to work on cleaning that up
>> > next before I move on to custom :)
>> >
>> > ---
>> > James
>>
>> Neat! I can hardly remember anymore what the benefits of -lang fb will
>> be :) I guess it could take quite a while to iron out all the
>> problems.
>
> The only benefit I really remember is that we will be able to make
> constructors for TYPE defs.
>
> But my main motivation for this -lang fb cleanup is the theory that the
> freebasic devs probably never test -lang deprecated with -gen gcc so we
> will probably be able to compile with -gen gcc much sooner thanks to the
> -lang fb cleanup
>
> ---
> James

Ah yes, constructors and destructors will be a great big benefit. We
can get rid of all those big warning comments about mandatory
constructing and destructing objects using inconsistently named
functions, and about not adding strings to certain types. And no
longer having to deal with several other arbitrary restrictions. Also,
we can use inheritance and polymorphism (not yet in a released version
of FB, though it's finished and seems to be working)

However, I seriously doubt that using -lang fb will make any
difference with the gcc emitter, since it only affects the parser, not
the emitter, as I just checked and confirmed.
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to