Thread: Assumptions in functions

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    9

    Assumptions in functions

    What are reasonable assumptions (Simplifying assumptions) when writing a function?

    I need a short text on the matter that might be helt as an authority on the matter (e.g. written by MIT proffessor). I'm putting together a letter to correct my test score, which I consider inappropriate, and this is vital.

    If anybody has a link or a direct quote, I would greatly appriciate it.

    -sp00nk.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Let's see the test questions, your answers, and how they were graded.

    gg

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >What are reasonable assumptions when writing a function?
    In general, there are none.

    >I'm putting together a letter to correct my test score, which I consider inappropriate, and this is vital.
    What was the question, and your answer? I would be willing to bet that the grade is appropriate and you just don't like it.
    My best code is written with the delete key.

  4. #4
    Registered User
    Join Date
    Jun 2004
    Posts
    722
    Quote Originally Posted by Sp00nk
    What are reasonable assumptions (Simplifying assumptions) when writing a function?
    Only what the standard says. not because it's portable (some companies keep the compilers outdated), but because the standard defines the rules for the language.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Void Functions Help
    By bethanne41 in forum C++ Programming
    Replies: 1
    Last Post: 05-09-2005, 05:30 PM
  2. Functions and Classes - What did I do wrong?
    By redmage in forum C++ Programming
    Replies: 5
    Last Post: 04-11-2005, 11:50 AM
  3. calling functions within functions
    By edd1986 in forum C Programming
    Replies: 3
    Last Post: 03-29-2005, 03:35 AM
  4. Factory Functions HOWTO
    By GuardianDevil in forum Windows Programming
    Replies: 1
    Last Post: 05-01-2004, 01:41 PM
  5. Shell functions on Win XP
    By geek@02 in forum Windows Programming
    Replies: 6
    Last Post: 04-19-2004, 05:39 AM