We are on the same page, then.
Don't miss the edit to my last post.
Should Declare use be avoided as much as possible?
Re: Should Declare use be avoided as much as possible?
Yep, +1 on that one.Tenaja wrote:Don't miss the edit to my last post.

Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
Re: Should Declare use be avoided as much as possible?
I think it's good practice to use declares from a documentation point of view, they tell you at a glance whats
in the source and there's absolutely no penalty from using them since they're not compiled into the executable.
They're simply required in some cases when there's a forward reference since the compiler only does a single pass
declare simply adds the function to the compilers symbol table and functions prototypes so it can do type checks
and what not.
in the source and there's absolutely no penalty from using them since they're not compiled into the executable.
They're simply required in some cases when there's a forward reference since the compiler only does a single pass
declare simply adds the function to the compilers symbol table and functions prototypes so it can do type checks
and what not.
Windows 11, Manjaro, Raspberry Pi OS


Re: Should Declare use be avoided as much as possible?
The IDE does that.idle wrote:I think it's good practice to use declares from a documentation point of view, they tell you at a glance whats
in the source
C provides the infinitely-abusable goto statement, and labels to branch to. Formally, the goto is never necessary, and in practice it is almost always easy to write code without it. We have not used goto in this book. -- K&R (2nd Ed.) : Page 65
Re: Should Declare use be avoided as much as possible?
Notepad++ doesn't... 

Re: Should Declare use be avoided as much as possible?
Write a plugin. There are a few function list plugins available for Notepad++ for ideas.Tenaja wrote:Notepad++ doesn't...
C provides the infinitely-abusable goto statement, and labels to branch to. Formally, the goto is never necessary, and in practice it is almost always easy to write code without it. We have not used goto in this book. -- K&R (2nd Ed.) : Page 65
Re: Should Declare use be avoided as much as possible?
sure it shows you the functions but not the parameters,though if your implementing a class you generally need to declare the functionsBlood wrote:The IDE does that.idle wrote:I think it's good practice to use declares from a documentation point of view, they tell you at a glance whats
in the source
its pretty much personal preference at the end of the day
Windows 11, Manjaro, Raspberry Pi OS

