473,480 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

signature

Hello !!
I do know that the name and the parameter are includet in a methode
signature but what abot the return type are then also includet in the
signature.

//Tony
Jul 23 '05 #1
9 1493
Tony Johansson wrote:
Hello !!
I do know that the name and the parameter are includet in a methode
signature but what abot the return type are then also includet in the
signature.

When we are talking in general, we usually consider the return type to be part of the
function signature.

When we are talking about function overloading specifically, the return type does not
matter on which function will be called.

--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 23 '05 #2
Tony Johansson wrote:

Hello !!

I do know that the name and the parameter are includet in a methode
signature but what abot the return type are then also includet in the
signature.


No.

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 23 '05 #3

Tony Johansson wrote:
Hello !!
I do know that the name and the parameter are includet in a methode
signature but what abot the return type are then also includet in the signature.

//Tony


I guess you are talking in reference to function overloading. If that
is so then the return type is ir-relevant. The number or type of
arguments should be different for functions to be overloaded.

There is something called function prototype which is of the form:
return_type function_name (arguments);

Not sure though what your context is..

Jul 23 '05 #4
MJ
Hi
You can not overload the function based on the return type, even though
the return type is included in the signature
MJ

Jul 23 '05 #5
MJ wrote:
Hi
You can not overload the function based on the return type, even though
the return type is included in the signature


From the C++ standard:

1.3.10 signature defns.signature]
the information about a function that participates in overload resolution
(13.3): the types of its parameters and, if the function is a class member,
the cv- qualifiers (if any) on the function itself and the class in which
the member function is declared.2) The signature of a template function
specialization includes the types of its template arguments (14.5.5.1).

[...]

2) Function signatures do not include return type, because that does not
participate in overload resolution.
Jul 23 '05 #6
Rolf Magnus wrote:
From the C++ standard:

1.3.10 signature defns.signature]
the information about a function that participates in overload resolution
(13.3): the types of its parameters and, if the function is a class member,
the cv- qualifiers (if any) on the function itself and the class in which
the member function is declared.2) The signature of a template function
specialization includes the types of its template arguments (14.5.5.1).

[...]

2) Function signatures do not include return type, because that does not
participate in overload resolution.

However return types are taken under consideration when using pointers to functions.
--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 23 '05 #7
Ioannis Vranos wrote:
However return types are taken under consideration when using pointers
to functions.

That's because the return type is part of the function TYPE. When you
declare a pointer to function, you're declaring a pointer to some
function type.

SIGNATURE is the stuff that applies to overloading (as posted earlier).
The return type is not a factor in overloading.

While people frequently intermix TYPE and SIGNATURE in conversation,
they are not the same thing.
Jul 23 '05 #8
Ron Natalie wrote:
That's because the return type is part of the function TYPE. When you
declare a pointer to function, you're declaring a pointer to some
function type.

SIGNATURE is the stuff that applies to overloading (as posted earlier).
The return type is not a factor in overloading.

While people frequently intermix TYPE and SIGNATURE in conversation,
they are not the same thing.

Interesting. Thanks for the clarification. :-)
--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 23 '05 #9
Ron Natalie wrote:
Ioannis Vranos wrote:
However return types are taken under consideration when using pointers
to functions.

That's because the return type is part of the function TYPE. When you
declare a pointer to function, you're declaring a pointer to some
function type.

SIGNATURE is the stuff that applies to overloading (as posted earlier).
The return type is not a factor in overloading.

While people frequently intermix TYPE and SIGNATURE in conversation,
they are not the same thing.


I should further point out that the SIGNATURE includes the name of
the function (along with the types of the arguments) where as the
type does not include the name.
Jul 23 '05 #10

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

Similar topics

0
1767
by: Geir S Eidissen | last post by:
Task: Removing the Signature element from an enveloped-signature xml file. The signed xml file is like this (SP=space, LF=line feed (ascii 10)), signature contents is not shown here <doc>LF...
12
10640
by: Kim | last post by:
I have a .NET service sending mails using CDOEX. These mails I need to sign. I got a tip that I should use CAPICOM. That worked fine sending a mail with signature. BUT the problem is that I...
2
10196
by: S. Baumann | last post by:
Hello, I use a code very similar to that found in the MSDN sample attached to the class XmlDsigEnvelopedSignatureTransform (code attached below). The code works fine and produces somethink like...
0
1502
by: David Mediavilla | last post by:
I am trying to check a SOAP signature with WSE 1.0 SP1, but with a certain transform I only get an "Unknown tranform" exception. The SOAP signature is like this: <ds:Signature>...
1
6139
by: JJBW | last post by:
Hi I am creating some aspx files in Visual Studio 2003 for a Danish web site. The page is encoded as UTF-8 - However, when I save the the aspx file as "UTF-8 without signature" the Danish...
3
7172
by: DJTN | last post by:
I'm getting the following error when I try to compile my setup project in VS 2002. I have re-installed the .net framework 1.1 and it didnt solve the problem. WARNING: Unable to find dependency...
0
2571
by: Geagleeye | last post by:
Hi everyone. I have some vba code to generate a pdf document through word, and add also digital signature. My problem is : how can i change the way the signature layout, it always show the...
14
4602
by: =?Utf-8?B?QUEyZTcyRQ==?= | last post by:
Am I correct in thinking that the <signatureof a function is its <syntax> i.e. the arguments and the order in which they are specified when calling the function?
0
1189
by: vituperio | last post by:
In a xml signature I have .... ... <Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"> <XPath Filter="intersect" xmlns="http://www.w3.org/2002/06/xmldsig-filter2"...
10
4503
by: AG | last post by:
I need to create a ASP.NET (3.5) web app where the client machine will be a tablet pc. The app will have a patient consent form that the patient would sign using the stylus. I would need to save...
0
7046
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,...
0
6908
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...
0
7048
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,...
0
6956
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...
0
5342
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,...
0
4485
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2986
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
183
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.