469,922 Members | 1,894 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,922 developers. It's quick & easy.

Function return values revisited

guy
We got it... :-)
from my post to VS.NET 2005 VB.NET ng...

Subject: function return values
From: "[MS]Jo**@data.vb" <an*******@discussions.microsoft.com> 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.

Jo**@data.vb

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

..

Nov 20 '05 #1
6 1020
Yeah, only a year to go.

--

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

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

"guy" <gu*@discussions.microsoft.com> wrote in message
news:3C**********************************@microsof t.com...
We got it... :-)
from my post to VS.NET 2005 VB.NET ng...

Subject: function return values
From: "[MS]Jo**@data.vb" <an*******@discussions.microsoft.com> 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.

Jo**@data.vb

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

.

Nov 20 '05 #2
* =?Utf-8?B?Z3V5?= <gu*@discussions.microsoft.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3
guy
and I thought the Ohm was a unit of resistance ;-)

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

--

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

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

"guy" <gu*@discussions.microsoft.com> wrote in message
news:3C**********************************@microsof t.com...
We got it... :-)
from my post to VS.NET 2005 VB.NET ng...

Subject: function return values
From: "[MS]Jo**@data.vb" <an*******@discussions.microsoft.com> 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.

Jo**@data.vb

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

.


Nov 20 '05 #4
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" <gu*@discussions.microsoft.com> wrote in message
news:27**********************************@microsof t.com...
and I thought the Ohm was a unit of resistance ;-)

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

--

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

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

"guy" <gu*@discussions.microsoft.com> wrote in message
news:3C**********************************@microsof t.com...
We got it... :-)
from my post to VS.NET 2005 VB.NET ng...

Subject: function return values
From: "[MS]Jo**@data.vb" <an*******@discussions.microsoft.com> 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.

Jo**@data.vb

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

.


Nov 20 '05 #5
guy
Well Herfried, it was probabaly your suggestion MS responded to, mine was only a couple of days ago;-)

guy

"Herfried K. Wagner [MVP]" wrote:
* =?Utf-8?B?Z3V5?= <gu*@discussions.microsoft.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #6
* =?Utf-8?B?Z3V5?= <gu*@discussions.microsoft.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Penn Markham | last post: by
15 posts views Thread by Steven T. Hatton | last post: by
2 posts views Thread by Penny | last post: by
8 posts views Thread by mannyGonzales | last post: by
4 posts views Thread by Tony Lownds | last post: by
4 posts views Thread by Sheldon | last post: by
reply views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.