Python Tutorial Was: Guido's regrets: filter and map

Anders J. Munch andersjm at dancontrol.dk
Tue Nov 26 05:31:35 EST 2002


"Terry Hancock" <hancock at anansispaceworks.com> wrote:
>(do I recall correctly that you couldn't pass literals to functions
> in Pascal?  I remember being very annoyed by that, coming from 
> Fortran).

You must be thinking of passing literals by reference.  Sure you can
pass literals to functions, you just can't do this:

program Indiana_House_of_Representatives;
   procedure Bill246(var pi: real);
   begin
        pi := 3.2;
   end;
begin
   Bill246(3.1415926535897931);
end;

Fortran-doesn't-have-these-silly-limitations-ly y'rs, Anders





More information about the Python-list mailing list