Library tutorials & articles

Visual Studio Next Generation: Language Enhancements

Initializers

The next version of Visual Basic will support initialization of variables on the line in which they are declared. Initializers can be used anywhere including inside a control structure. The semantics of a procedure level declaration, which includes an initalizer, is the same as a declaration statement immediately followed by an assignment statement. In other words, this statement:

Dim X As Integer = 1

is equivalent to these statements:

Dim X As Integer X = 1

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!