Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > why here is a static parameter used?

Reply
Thread Tools

why here is a static parameter used?

 
 
BruceWho
Guest
Posts: n/a
 
      10-17-2006
I found code like
this(http://www.yangsky.com/products/trafgo/SDK/index.htm):

__declspec(dllexport) void tgSetBreakdownOverlapRate(static double
rate, const int nCh)

the parameter rate is defined as static? I have never seen a parameter
declared as static. Could anybody tell me why static is used here?

 
Reply With Quote
 
 
 
 
Ron Natalie
Guest
Posts: n/a
 
      10-17-2006
BruceWho wrote:
> I found code like
> this(http://www.yangsky.com/products/trafgo/SDK/index.htm):
>
> __declspec(dllexport) void tgSetBreakdownOverlapRate(static double
> rate, const int nCh)
>
> the parameter rate is defined as static? I have never seen a parameter
> declared as static. Could anybody tell me why static is used here?
>

I have no idea. It's not valid C++ and in four major versions of
Visual Studio I've never encountered it as an extension. VS2005
certainly gives an diagnostic for the parameter having a "bad storage
class.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why why why why why Mr. SweatyFinger ASP .Net 4 12-21-2006 01:15 PM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
Why does DJ v3.7.7.81 generate weird-looking static fields like class$exercise$MyClass and static methods _mthclass$(String)? Bruce .J Sam Java 0 06-16-2005 02:34 AM
IMPORT STATIC; Why is "import static" file scope? Why not class scope? Paul Opal Java 12 10-10-2004 11:01 PM
Why do static and non-static method names collide? =?ISO-8859-1?Q?Thomas_Gagn=E9?= Java 12 07-05-2003 04:59 PM



Advertisments