Results 1 to 2 of 2

Thread: need help with ada function calls

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2003
    Posts
    149

    need help with ada function calls

    Dont know ada so i need some help. This is for a homework assignment.
    I got 3 function prototypes: 1. int pow(int int)
    2. double pow(double double)
    3. double pow(int double)
    int x;
    double y;
    x=pow(2,3)
    y=pow(2,3)
    x=pow(2,3.2)
    y=pow(2,3.2)
    x=pow(2.1,3)
    y=pow(2.1,3)
    x=pow(2.1,3.2)
    y=pow(2.1,3.2)

    I want to know for every pow call what function is called or is it illegal?
    in c++ i got {1,1,3,3,illegal,illegal,2,2}
    Anyone got any hints one how ada would run these?

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177
    See if this site is any help.

    FWIW, I worked on an ADA compiler 20 some years ago, but I never really used the language. We wrote the early versions of the compiler in SNOBOL. A later team started rewriting it in ADA once development was far enough along.

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