P
Peter Oliphant
It occured to me that C++, C# and VB (ok, and J#, are you happy now? : ) are
becoming so close that it makes sense to have a 'langauge' that allows
mixing these in the same source!
That is, if the source file is ".cpp" it compiles as a C++ source, ".cs" a
C# source file, and ".vb" for visual basic source. As long as they are
isolated in this way, the calling convention could make it possible to not
have to choose amongst VB, C++, C# (and, OK, J#) as an 'environment', but
just have VS.NET (in contrast to VS C++.NET vs. VS VB.NET). By calling
convention I mean that, in most cases, methods in any language can be called
from, and classes constructed in another language can be refered to, by
using a slightly different syntax (e.g., C# uses '.' for scoping while C++
uses '::").
I'm guessing this isn't possible right now, but it seems like a natural
extension ot the trend towards unification going on with the languages of
VS.NET. Ultimately, it might even be posible to have 'blocks' of code in one
source file that are really another language. For example, in a ".cpp" have
something like a '#start_block visual basic' with a '#finish_block' ender.
In other words, a sort of extension to the way in-line coding mixes assembly
with high-level languages...
[==P==]
becoming so close that it makes sense to have a 'langauge' that allows
mixing these in the same source!
That is, if the source file is ".cpp" it compiles as a C++ source, ".cs" a
C# source file, and ".vb" for visual basic source. As long as they are
isolated in this way, the calling convention could make it possible to not
have to choose amongst VB, C++, C# (and, OK, J#) as an 'environment', but
just have VS.NET (in contrast to VS C++.NET vs. VS VB.NET). By calling
convention I mean that, in most cases, methods in any language can be called
from, and classes constructed in another language can be refered to, by
using a slightly different syntax (e.g., C# uses '.' for scoping while C++
uses '::").
I'm guessing this isn't possible right now, but it seems like a natural
extension ot the trend towards unification going on with the languages of
VS.NET. Ultimately, it might even be posible to have 'blocks' of code in one
source file that are really another language. For example, in a ".cpp" have
something like a '#start_block visual basic' with a '#finish_block' ender.
In other words, a sort of extension to the way in-line coding mixes assembly
with high-level languages...
[==P==]