Library tutorials & articles

Visual Studio Next Generation: Language Enhancements

Type Safety

Today the Visual Basic language is very liberal in the implicit type coercions that it will generate. For assignment and for parameter passing other than by reference, the Visual Basic compiler will allow nearly any data type to be converted to any other type by generating runtime coercion. The runtime coercion operation will fail if the value that is to be converted cannot be converted without data loss. Through the addition of a new compilation option, Visual Basic can generate compile-time errors for any conversions that may cause an error at runtime. Option Strict improves type safety by generating errors when a conversion is required which could fail at runtime or which, like the automatic conversion between numeric types and strings, is unexpected by the user.

Comments

  1. 12 Nov 2002 at 17:10

    The Object Oriented feature like Inheritance,Polymorphism,Encapsulation in Visual Basic is really a great achievement.Offcourse making a VB program as Multithreaded and allowing STructured exception handling is other great achievements.


    But I beleive there is a potential drawback associated with VB.That is its languag construct.SImultaneously there should be effort in improving the Construct/Style of VB language.
    Otherwise there will be a learning curve for any object oriented C++/Java developer to use VB.
    It cannot be called as a ObjectOriented language unless the Construct of the language is similar to any of the ObjectOrieneted Language.


    Ghanshyam.

  2. 01 Aug 2002 at 21:18

    I am not sure if you have your whole VB history down. I learned VB from a Version 2.0 Demo. Also, did you also know there was Visual Basic for DOS?

  3. 01 Jan 1999 at 00:00

    This thread is for discussions of Visual Studio Next Generation: Language Enhancements.

Leave a comment

Sign in or Join us (it's free).

AddThis

Related podcasts

  • CodeCast Episode 4: State of .NET, IE8, ASP.NET MVC, and O'Reilly Media

    CodeCast Episode 4: State of .NET, IE8, ASP.NET MVC, and O'Reilly MediaHosts Ken Levy and Markus Egger discuss the new State of .NET events, IE8, ASP.NET MVC, followed by an interview from PDC with two editors from O'Reilly Media. More on ASP.NET MVC can be found at http://asp.net/mvc. Interview...

Related jobs

Events coming up

  • Dec 6

    Developing AJAX Web Applications with Castle Monorail

    London, United Kingdom

    Monorail is the model-view-controller engine of the Castle Project, bringing many of the best ideas of Ruby on Rails to the .NET world. In this talk, David De Florinier and Gojko Adzic show how Monorail makes it easy to develop .NET based AJAX applications, and how to use the Castle Project to build Web 2.0 applications effectively. Come to this session if you are a .NET web developer. Everyone is welcome!