Re: Wish I was using .net



Oh,
Then I have to agree with MikeD, that's just the way the language is. In
..NET, or any language for that matter you'll find a number of runtime errors
that for whatever reason the compiler won't catch. It has nothing to do
with the language, or the compiler. There are a number of instances in VB
where you wouldn't want the compiler to raise an error at compile time if
there were a potential type mismatch. If you don't catch something in
testing, then you don't catch it, that's how every language works.

Lance


"Michael C" <nospam@xxxxxxxxxx> wrote in message
news:ewYtbNcNGHA.344@xxxxxxxxxxxxxxxxxxxxxxx
"Lance Wynn" <LanceWynn@xxxxxxxxxxxxxxxx> wrote in message
news:%23ysif%23bNGHA.916@xxxxxxxxxxxxxxxxxxxxxxx
Can you post some code samples, I too cannot get this to compile. Having
a
function return a connection, and trying to set that to a command object
gives me a type mismatch at runtime. I am interested in learning under
what
circumstances this can occur so I can avoid it if I come across it.

That is what it is meant to do. The point is you get it at runtime, not at
compile time like it should.

Michael



.



Relevant Pages

  • Re: "STL from the Ground Up"
    ... high-level intermediate language than can interoperate with many other ... If your language lacks expressive features then you cannot write code ... memory management in comparison. ... Mostly because type errors mean that the programmer and compiler disagree ...
    (comp.programming)
  • Re: A note on computing thugs and coding bums
    ... It would handle international characters if the execution character ... method I used in "Build Your Own .Net Language and Compiler". ... work areas and counting on Nul is an illusion. ...
    (comp.programming)
  • Re: WaitForSingleObject() will not deadlock
    ... represent an incorrect implementation of the language. ... the *compiler* does not guarantee this. ... but to state it in terms of the execution instead of the formal semantics of the language ... as long as the optimizations do not change the semantics of the language). ...
    (microsoft.public.vc.mfc)
  • Re: "STL from the Ground Up"
    ... are not features of a language. ... To support reflection you make a compiler embbed type and functional information in the compiled program. ... When the OCaml compiler is given a complicated nested pattern match it ... virtual const Base *clone= 0; ...
    (comp.programming)
  • Re: "STL from the Ground Up"
    ... If your language lacks expressive features then you cannot write code well ... Same program is 5x faster in OCaml than C++. ... The compiler infers the types of all subexpressions for you and makes them ... virtual const Base *clone= 0; ...
    (comp.programming)