Re: VB language extensions wishlist
- From: "Schmidt" <sss@xxxxxxxxx>
- Date: Sun, 17 Feb 2008 14:43:48 +0100
"Pavel Minaev" <int19h@xxxxxxxxx> schrieb im Newsbeitrag
news:a2841ab5-27cd-46f7-baad-cfe61f1f4f57@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Feb 17, 12:45 pm, "Schmidt" <s...@xxxxxxxxx> wrote:
Targeting C++ is even easier in some respects...Yes, if you plan, to emit only C++-Code, then it
is much easier, than to emit a PE-Binary directly.
In general, I would hope to have the generated C++ codeBut if I understand you correctly, we will end up with "only"
to actually be readable and concise, close to what a human
would've written in a similar case.
a (compilable) C++-Project - debugging such a project
(break-points, etc.) would end up in looking at C++-
Code, right?
[FreeBasic as an alternative]
Does it support anything resembling OOP?Hmm, I'd say 120,000 lines of already existing (and
Writing a simple BASIC compiler is actually relatively
simple even when targeting assembly directly.
tested + bugfixed) code as in the current FreeBasic-
Source-Tree is something, which is not all that simple
to rewrite again - why not use/adapt it to our needs.
The biggest challenges for a VB clone are its class/formCOM is (mainly) VTable-Handling using TypeLib-Defined
system, and the COM interop.
"Method-Headers". A language, which supports pointers
and calling functions from pointers should be suitable -
and FreeBasic supports that.
For these reasons also I'd be wary of extending codeThere are FreeBasic-IDEs - but they are of course not at the
written in another dialect of BASIC - does it have adequate
development tools, such as a decent IDE (autocompletion,
refactoring etc) with an integrated debugger? I've gotten rather
spoiled in that regard in the last few years, writing C++ and
especially C# code in VS2005/2008. :)
same level, VisualStudio offers currently.
Yes, but as said - I'd not expect something to be finished
earlier than 2011 if it is *not* based on a FreeBasic-fork.
It depends on what is defined as "finished". If we're speaking of aI'd love to see that happen that fast, but what do you expect would
full package - compiler + all libs + IDE - then your date is about
right, but it's so regardless of the approach (proper IDE alone takes
a lot to polish). A fully compatible compiler able to use the existing
VB6 runtime is something I'd expect to get out much sooner, quite
possibly less than a year to a feature-complete beta.
be the necessary environment for us, to compile a *.vbp?
Would we have to install the VC++-Express-Version or something
like that in a first step?
And we would have to write/include a COM-Typelib-parser -
something based on Jose Rocas stuff:
http://www.forum.it-berater.org/index.php?topic=420.msg1572
Parsing COM typelibs is easy, since COM itself has all theYes, I know - I'm using Edanmos OleLib for that - what I
APIs needed for that.
meant was, that the Tool in the link above already creates
the needed Basic-Files, which reflect the TypeLib-Defines
in PowerBasic-, respective FreeBasic-Style for direct usage
inside a wrapper.
And we would have to write our own TypeLib-
Compiler, if we plan to make our own "internal
Components" COM-compatible.
Generating typelibs is just as easy, and for the same reason.Are you sure - I'm talking about emitting a *.tlb directly
from Basic-Code - you are probably talking about
creating a Midl-compileable *.idl-Textfile.
Anyway - would be glad, if you'd take a serious look
at what FreeBasic in its current incarnation has to offer.
In the Download there are also Win32-examples, including
COM-Interop-Demos, so the consuming of COM-
Objects should be very doable. Regarding the opposite
direction, compiling a COM-Dll using FreeBasic - I think
I could provide you with an example, if you really have
interest to take a closer look.
Would appreciate it, if we could end up with a true, machine-
code-emitting compiler, able to link BreakPoints to
Basic-Code.
Olaf
.
- Follow-Ups:
- Re: VB language extensions wishlist
- From: Robert Conley
- Re: VB language extensions wishlist
- From: Pavel Minaev
- Re: VB language extensions wishlist
- References:
- VB language extensions wishlist
- From: Pavel Minaev
- Re: VB language extensions wishlist
- From: Ulrich Korndoerfer
- Re: VB language extensions wishlist
- From: Steve Gerrard
- Re: VB language extensions wishlist
- From: Schmidt
- Re: VB language extensions wishlist
- From: Pavel Minaev
- VB language extensions wishlist
- Prev by Date: Re: A 3rd-party compatible implementation of VB
- Next by Date: XMCommCRC ActiveX
- Previous by thread: Re: VB language extensions wishlist
- Next by thread: Re: VB language extensions wishlist
- Index(es):
Relevant Pages
|