Function return values revisited

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

We got it... :-)


from my post to VS.NET 2005 VB.NET ng...

Subject: function return values
From: "[MS][email protected]" <[email protected]> Sent: 7/2/2004 12:56:27 PM




Yes, you will get this warning in vs 2005. Check this
feature out in the beta1.
Also you will get a green squiggle in the function with
nice tooltips to indicate what is going on.

(e-mail address removed)

This posting is provided "AS IS" with no warranties, and
confers no rights.

..

sorry for the cross post (dotnet.general....)

It would be really nice if we could have an
Option VeryStrict (or similar)
that caused a compilation warning or error for function
calls that did not assign return values
eg
Split(MyString,",")
instead of
MyArray = Split(MyString,",")

The time overhead of having to type Bitbucket= ...
when i dont need the return value would be more than
recovered by having bugs trapped at compile time rather
than runtime.

cheers

gu

..
 
Yeah, only a year to go.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing
 
* =?Utf-8?B?Z3V5?= said:
It would be really nice if we could have an
Option VeryStrict (or similar)
that caused a compilation warning or error for function
calls that did not assign return values
eg
Split(MyString,",")
instead of
MyArray = Split(MyString,",")

I made the same suggestion some time ago.
 
and I thought the Ohm was a unit of resistance ;-)

One Handed Man ( OHM - Terry Burns ) said:
Yeah, only a year to go.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

guy said:
We got it... :-)


from my post to VS.NET 2005 VB.NET ng...

Subject: function return values
From: "[MS][email protected]" <[email protected]> Sent: 7/2/2004 12:56:27 PM




Yes, you will get this warning in vs 2005. Check this
feature out in the beta1.
Also you will get a green squiggle in the function with
nice tooltips to indicate what is going on.

(e-mail address removed)

This posting is provided "AS IS" with no warranties, and
confers no rights.

.

sorry for the cross post (dotnet.general....)

It would be really nice if we could have an
Option VeryStrict (or similar)
that caused a compilation warning or error for function
calls that did not assign return values
eg
Split(MyString,",")
instead of
MyArray = Split(MyString,",")

The time overhead of having to type Bitbucket= ...
when i dont need the return value would be more than
recovered by having bugs trapped at compile time rather
than runtime.

cheers

gu

.
 
I resist that statement, and now I'm going to wander into neighbouring
magnetic field and ride over wheatstone bridge on my megacycle.

;-)

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

guy said:
and I thought the Ohm was a unit of resistance ;-)

One Handed Man ( OHM - Terry Burns ) said:
Yeah, only a year to go.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

guy said:
We got it... :-)


from my post to VS.NET 2005 VB.NET ng...

Subject: function return values
From: "[MS][email protected]" <[email protected]> Sent: 7/2/2004 12:56:27 PM




Yes, you will get this warning in vs 2005. Check this
feature out in the beta1.
Also you will get a green squiggle in the function with
nice tooltips to indicate what is going on.

(e-mail address removed)

This posting is provided "AS IS" with no warranties, and
confers no rights.

.

sorry for the cross post (dotnet.general....)

It would be really nice if we could have an
Option VeryStrict (or similar)
that caused a compilation warning or error for function
calls that did not assign return values
eg
Split(MyString,",")
instead of
MyArray = Split(MyString,",")

The time overhead of having to type Bitbucket= ...
when i dont need the return value would be more than
recovered by having bugs trapped at compile time rather
than runtime.

cheers

gu

.
 
Well Herfried, it was probabaly your suggestion MS responded to, mine was only a couple of days ago;-)

guy
 
* =?Utf-8?B?Z3V5?= said:
Well Herfried, it was probabaly your suggestion MS responded to, mine was only a couple of days ago;-)

Microsoft isn't always clear about what answer to give, but I am sure
they noted the request.
 
Back
Top