Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
the term arguments
#21
ok, reasonable
Reply
#22
In the early days of programming parameters and arguments had to do with function(a,b..) and subroutines. A function returned a single value to the calling program based on its parameters (a,b..). Whereas a subroutine(a,b,c..) contained arguments (a,d,c..) which were links to the values within the calling program. I think the choice of the word arguments for subroutine indicated that the calling program’s arguments/variables could be changed within the subroutine. Whereas a parameter(s) were passed to the function.
Reply
#23
(Nov-26-2022, 05:07 PM)dmc8300 Wrote: In the early days of programming parameters and arguments had to do with function(a,b..) and subroutines. A function returned a single value to the calling program based on its parameters (a,b..). Whereas a subroutine(a,b,c..) contained arguments (a,d,c..) which were links to the values within the calling program. I think the choice of the word arguments for subroutine indicated that the calling program’s arguments/variables could be changed within the subroutine. Whereas a parameter(s) were passed to the function.

is this how it is in C or Assembly ?
Reply
#24
This terminology was for early compiled languages (MAD,FORTRAN,PASCAL,etc). Forth generations and beyond use functions and other methods to create encapsulated blocks of code.
Reply
#25
i see,
i actually learned some PASCAL in high school, just a bit...
and i have an uncle who was programming in FORTRAN back at the times...
Reply
#26
I started programming in 1968. I was working in the R & D department of a computer manufacturer, in the disk drive development department. We had to write assembly diagnostics programs in order to do our work. I fell in love with programming switched and never looked back.

In assembly programming, our 'arguments' were all held in registers, or internal (core, no affordable silicon back then) memory, but they were indeed arguments. I don't, however, remember calling them arguments back then.

A function could return a single item, but that item could be an 'address' to a structure containing many elements. So in a way, we did indeed have multiple arguments.
astral_travel likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Short-term rental housing management jacombo 0 242 Mar-25-2024, 11:23 AM
Last Post: jacombo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020