Page 1 of 1

Assembler

Posted: Fri May 22, 2009 3:17 pm
by peter
Hi Zero,

are you planning with your new Basic version an inline Assembler ?
I'm a big fan of Assembler and C.
What about procedural programming ? Is this feasible with new version?

regards
Peter

Re: Assembler

Posted: Mon May 25, 2009 8:18 am
by Zero
What comes to procedural programming, by all means it's still possible, yet in a world of Object Oriented Programming the concept of global functions is blur.

For example, a static class like "Memory" practically only provides static ("Shared" modifier in CoolBasic V3 and VB.NET) methods meaning you'd never create any instance from the Memory class, but you'd use those methods directly instead (through qualification mind you).

Memory.Allocate()
Memory.WriteInteger()

etc.

You can, of course, create your own Shared methods (and also static classes (Modules) that only declare Shared members). The same concept also applies to "global" variables; you'll have to create Shared variables that reside inside classes or modules.

Yep, it's a pretty huge change. CoolBasic V3 will basically be just like Visual Basic .NET.

Re: Assembler

Posted: Mon May 25, 2009 12:23 pm
by peter
thank you for the information.
Peter