Liste des Groupes |
In article <vl9aln$o72$1@dont-email.me>, Arne Vajhøj <arne@vajhoej.dk> wrote:I never use string (on VMS).On 1/3/2025 1:17 PM, Dan Cross wrote:Weird; I can't imagine why.In article <67781447$0$711$14726298@news.sunsite.dk>,>And also fixed in the description of VARYING further up.>
You should seriously mention the STRING type, though.
I think VARYING OF CHAR is what is used most in VMS Pascal.
Regardless, it may be worthwhile toGood point.
at least mention it, since you state explicitly that there are
three types for representing textual, string-like data, but
VSI's documentation makes it clear that there are actually four.
I don't indent them.Ah, I see it now; the lack of indentation makes it hard to spot.Also, it's a bit of a bummer that you didn't mention nested>
functions/procedures, which are among the cooler aspects of the
language:
>
$ type foo.pas
(* foo *)
program foo(output);
procedure hello;
procedure world(var who: String);
function punct: char;
begin
punct := '!'
end;
begin
who := 'World' + punct
end;
var
who: String (10);
begin
world(who);
writeln('Hello, ', who)
end;
begin
hello
end.
There is already an example. fac is inside testfac.
>
I will add a note about it.
Les messages affichés proviennent d'usenet.