What do you mean by that??...
An overloaded ctor with different arguments in each case? or
A ctor with default arguments for some parameters?
or a ctor with an input parameter of type va_args?
What scenario would require a constructor with variable arguments?
I havent heard of this..but perhaps you can use a named constructor idiom.
| "Vipul" <[EMAIL PROTECTED]>
10/19/2004 01:06 AM
|
|
Hi,
Can COnstructor take variable no. of arguments???
regards,
VIPUL
if no then how?????
----- Original Message -----
From: "Ananth" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 16, 2004 8:22 PM
Subject: Re: [c-prog] size of could not been applied to a function
>
> I don't think it can be done.
> But I *think* MFC provides a way to specify the address where the
> program should run, i am NOT sure, just a vague recollection of
> reading somewhere. If this is true, then something like this would
> suit your purposes fine. You can then always load your
> program\functions in the faster memory.
>
> And why i don't think it can be done, i.e. c++ would not support
> moving function definitions (assuming this is even possible in the
> first place):
> what about vtable guys? assume you _somehow_ moved the function
> defintion to some other address, who would update the funtion
> addresses in the vtable? vtable is constructed at compile time
> remember.
>
> So me thinks this is a no-go :)
>
> cheers
> - ananth
>
>
> On Sat, 16 Oct 2004 14:35:18 -0700 (PDT), bassam al-sani,
> <[EMAIL PROTECTED]> wrote:
> >
> >
> > OK, first it is very important to know the size of function in some
critical
> > situation.
> > example: 1-in the TSR application you must calculate the size of the
> > function or the application,2- in the device driver software the OS have
to
> > know the size of DD and every
> > function of it.
> > anyway, in c lang. i am not sure how to do.. but i will try
> > in ASSEMBLY it is very easy. you just make a label at the start of the
> > function, then
> > another label at the end of the function and tat give you the first
location
> > address and the second give you the the last location (don't care about
the
> > location it may var.) you just need to know the size.... and good luck
for
> > all
> > recep yalman <[EMAIL PROTECTED]> wrote:
> >
> > i want to celebrate the person who started this discussion. Is very
> > interesting. i tried but my compiler warned me that we can not apply
sizeof
> > a function. if someone can compute size of a function, he or she is an
> > expert. please send me how you can accomplish it. thank you
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> > To unsubscribe, send a blank message to
> > <mailto:[EMAIL PROTECTED]>.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Bassam Alsanie
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> > To unsubscribe, send a blank message to
> > <mailto:[EMAIL PROTECTED]>.
> >
> >
> >
> > Yahoo! Groups Sponsor
> >
> > ADVERTISEMENT
> >
> >
> > ________________________________
> > Yahoo! Groups Links
> >
> > To visit your group on the web, go to:
> > http://groups.yahoo.com/group/c-prog/
> >
> > To unsubscribe from this group, send an email to:
> > [EMAIL PROTECTED]
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>
>
> To unsubscribe, send a blank message to
<mailto:[EMAIL PROTECTED]>.
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~->
To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/c-prog/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
ForwardSourceID:NT0000659E
| DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services Limited. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services limited on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services Limited takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services limited shall be understood as neither given nor endorsed by Tata Consultancy Services Limited or any affiliate of Tata Consultancy Services Limited. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you. |
To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/c-prog/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
