Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.comp.lang.pascal > #53
| From | "F. W." <me@home.com> |
|---|---|
| Newsgroups | alt.comp.lang.pascal |
| Subject | Re: Untyped variables of a function |
| Date | 2021-09-02 08:05 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <sgppii$f4r$1@gioia.aioe.org> (permalink) |
| References | <sc6crf$1r3h$1@gioia.aioe.org> <0010jg9r7vtgk0le1h8ac993dksqmju12c@4ax.com> |
Am 02.09.2021 um 00:53 schrieb Shadow:
>> Pascal has strong types. Is it anyhow possible to define a
>> parameter of a function or procedure that allows passing variables
>> of any type?
> I discovered that to get help here you have to describe exactly what
> you are trying to do. No, the group is not dead. What sort of
> function would have to accept any kind of variable? []'s
I wanted to imitate the printf-function of c in Pascal.
void printf (char *format, ...)
That was one of the advantages of Pascal against Modula-2. There was no
flexible WRITE/WRITELN-Procedure in M2.
VAR a: INTEGER; b: CHAR; c: STRING;
Modula-2:
IO.WrStr ('Hello');
IO.WrInt (a);
IO.WrStr (b);
IO.WrStr (c);
Pascal:
WRITELN ('Hello', a, b, c);
FW
Back to alt.comp.lang.pascal | Previous | Next — Previous in thread | Next in thread | Find similar
Untyped variables of a function "F. W." <me@home.com> - 2021-07-08 10:26 +0200
Re: Untyped variables of a function Shadow <Sh@dow.br> - 2021-09-01 19:53 -0300
Re: Untyped variables of a function "F. W." <me@home.com> - 2021-09-02 08:05 +0200
Re: Untyped variables of a function Shadow <Sh@dow.br> - 2021-09-02 08:12 -0300
Re: Untyped variables of a function Dr Engelbert Buxbaum <engelbert_buxbaum@hotmail.com> - 2021-12-29 11:22 +0100
Re: Untyped variables of a function "F. W." <me@home.com> - 2021-12-29 16:11 +0100
Re: Untyped variables of a function holyghost <automn.willow@gmail.com> - 2021-09-24 05:16 +0200
csiph-web