Results 1 to 3 of 3

Thread: Correct Declarations

  1. #1

    Thread Starter
    Fanatic Member HaxSoft's Avatar
    Join Date
    May 2000
    Location
    Ohio
    Posts
    593
    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?

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Whatever I bloody well feel like usually
    Harry.

    "From one thing, know ten thousand things."

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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
  •  



Click Here to Expand Forum to Full Width