|
-
Aug 29th, 2000, 05:22 AM
#1
Thread Starter
Fanatic Member
Hi, everyone.
I was just wondering if you have any opinions on what the correct way of declaring a function is. I have noticed that quite a lot programmers have strong opinions on how code should be written, and I have many strange habits myself.
For example, some people always declare their functions on one single line. I tend to write them on multiple lines:
Code:
Public Declare Function CallWindowProc _
Lib "user32" Alias "CallWindowProcA" ( _
ByVal lpPrevWndFunc As Long, _
ByVal hWnd As Long, _
ByVal Msg As Long, _
ByVal wParam As Long, _
ByVal lParam As Long) _
As Long
The reason I like this better is because then I don't have to scroll left/right to read it all. I only do this with long declarations, though. What do you people do?
-
Aug 29th, 2000, 07:40 AM
#2
Frenzied Member
Whatever I bloody well feel like usually
Harry.
"From one thing, know ten thousand things."
-
Aug 29th, 2000, 06:12 PM
#3
Monday Morning Lunatic
I just slap it all on one line.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|