473,809 Members | 2,740 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

8.0.0 beta 2, void type

I have moved a DB from 7.4.3 to 8.0.0b2 for testing and am
experiencing some
problems with the void type within pl functions. I am calling a
function which
returns a void from within another function and have defined a
variable of type
void to catch the returned value. This worked fine in 7.4.x but
when executed
in 8 generates a "variable has pseudo-type void" error. Is this
a bug or a
change in functionality? Is there a workaround short of
rewritting all
functions to return a non-void value?

thanks,

Nick

Nov 23 '05 #1
2 2155
"Nick Hajek" <nh****@vishay. com> writes:
I have moved a DB from 7.4.3 to 8.0.0b2 for testing and am
experiencing some problems with the void type within pl functions.
I am calling a function which returns a void from within another
function and have defined a variable of type void to catch the
returned value.


Er, why would you want to catch a void return value? Seems like
you ought to use a PERFORM statement.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 23 '05 #2
> > I have moved a DB from 7.4.3 to 8.0.0b2 for testing and am
experiencing some problems with the void type within pl functions.
I am calling a function which returns a void from within another
function and have defined a variable of type void to catch the
returned value.


Er, why would you want to catch a void return value? Seems like
you ought to use a PERFORM statement.

regards, tom lane

I didn't know about PERFORM so was just doing what I discovered would work.
Thanks for the tip.

Nick


Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

48
3734
by: ik | last post by:
ERROR after uninstalling SQL Server 2005 Express I get this message, SQLDMO has not been registered. Please re-run your setupand contact your system administrator. GREAT!!! ReInstalled SQL SERVER 2000 after playing around with SQL Server 2005...
3
1942
by: Robert | last post by:
I have an application with custom configuration sections in it's app.config file. Here's a shortened excerpt: <monitors> <monitor type="SystemMonitor.Monitors.NetworkAvailabilityMonitor,SystemMonitor"> <notifiers> <notifier type="SystemMonitor.Notifiers.MessageBoxNotifier,SystemMonitor" />
4
4524
by: Adriano Coser | last post by:
I'm getting the following error: error C3767: PictureSource - candidate function(s) not accessible when accessing a public member function of a managed class, either from managed or unmanaged code. The class is an owner draw control implemented into a Control Library. The access is on a DLLs that support CLR with old syntax. The code compiled OK on Beta-1.
5
1288
by: PaulW | last post by:
When I compile the following code with the C++ compiler version 14.00.50215.44 (Microsoft Visual Studio 2005 beta 2) using the command line 'cl -W4 -clr:oldSyntax test.cpp' at run time I get a Null Reference Exception due to the dynamic_cast. With the C++ compiler version 13.10.3077 from Visual Studio 2003 using the command line 'cl -W4 -clr test.cpp' no such error is generated. #using <mscorlib.dll> using namespace System;
13
1615
by: Marcos B | last post by:
1) There was announced that the default providers for membership, profile, etc in beta 2 would be SQLExpress instead of the Beta 1 AccessProvider, and that AccessProvider will be discontinued. I'm trying to do some simple apps in asp.net 2.0 beta 2, but the AccessProvider is still alive and the problem it's that I cannot make work the SQL provider with an SQL database, the AccessDatabase is automatically created and associated as with...
16
2975
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In: http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=632614619884218750 -------------------------------------------------------------------------------- System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed. at...
8
2539
by: jojobar | last post by:
Okay, I am trying to do is to test the webresource in 2.0 1. I created a new project with assembly name (and default assembly name) "Office". 2. I added the following to the AssemblyInfo.cs file (present under the Properties folder of the project) 3. Now I created a file called test.js on the root folder of the project,
0
866
by: Nick Hajek | last post by:
I have moved a DB from 7.4.3 to 8.0.0b2 for testing and am experiencing some problems with the void type within pl functions. I am calling a function which returns a void from within another function and have defined a variable of type void to catch the returned value. This worked fine in 7.4.x but when executed in 8 generates a "variable has pseudo-type void" error. Is this a bug or a change in functionality? Is there a workaround...
0
1379
by: nhmark64 | last post by:
My PC was a completely screwed up mess. Nieither the unistall tool or the manual uninstall at http://msdn.microsoft.com/vstudio/support/uninstall/default.aspx worked. I also tried the VS 2005 beta cleanup tool at http://blogs.msdn.com/astebner/archive/2005/04/25/411974.aspx. This tool was designed to remove Beta 1 in preparation for Beta 2. I needed to remove Beta 1 in preparation for VS2005 Pro, not exactly the same thing. ...
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9602
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10639
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10120
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.