Discussion:
Which line(s) will compile ?
(too old to reply)
s***@hotmail.com
2020-01-10 22:59:09 UTC
Permalink
Bored with oberon, give this a try:

Attempting to analyze the complexity of pascal's operators, [] . ignored:

A@@ := B@@;
A^@ := B@@;
A@^ := B@@;
A^^ := B@@;
A@@ := B^@;
A^@ := B^@;
A@^ := B^@;
A^^ := B^@;
A@@ := B@^;
A^@ := B@^;
A@^ := B@^;
A^^ := B@^;
A@@ := B^^;
A^@ := B^^;
A@^ := B^^;
A^^ := B^^;
A@@ := @B@;
A^@ := @B@;
A@^ := @B@;
A^^ := @B@;
A@@ := ^B@;
A^@ := ^B@;
A@^ := ^B@;
A^^ := ^B@;
A@@ := @B^;
A^@ := @B^;
A@^ := @B^;
A^^ := @B^;
A@@ := ^B^;
A^@ := ^B^;
A@^ := ^B^;
A^^ := ^B^;
A@@ := @@B;
A^@ := @@B;
A@^ := @@B;
A^^ := @@B;
A@@ := ^@B;
A^@ := ^@B;
A@^ := ^@B;
A^^ := ^@B;
A@@ := @^B;
A^@ := @^B;
A@^ := @^B;
A^^ := @^B;
A@@ := ^^B;
A^@ := ^^B;
A@^ := ^^B;
A^^ := ^^B;
@A@ := B@@;
^A@ := B@@;
@A^ := B@@;
^A^ := B@@;
@A@ := B^@;
^A@ := B^@;
@A^ := B^@;
^A^ := B^@;
@A@ := B@^;
^A@ := B@^;
@A^ := B@^;
^A^ := B@^;
@A@ := B^^;
^A@ := B^^;
@A^ := B^^;
^A^ := B^^;
@A@ := @B@;
^A@ := @B@;
@A^ := @B@;
^A^ := @B@;
@A@ := ^B@;
^A@ := ^B@;
@A^ := ^B@;
^A^ := ^B@;
@A@ := @B^;
^A@ := @B^;
@A^ := @B^;
^A^ := @B^;
@A@ := ^B^;
^A@ := ^B^;
@A^ := ^B^;
^A^ := ^B^;
@A@ := @@B;
^A@ := @@B;
@A^ := @@B;
^A^ := @@B;
@A@ := ^@B;
^A@ := ^@B;
@A^ := ^@B;
^A^ := ^@B;
@A@ := @^B;
^A@ := @^B;
@A^ := @^B;
^A^ := @^B;
@A@ := ^^B;
^A@ := ^^B;
@A^ := ^^B;
^A^ := ^^B;
@@A := B@@;
^@A := B@@;
@^A := B@@;
^^A := B@@;
@@A := B^@;
^@A := B^@;
@^A := B^@;
^^A := B^@;
@@A := B@^;
^@A := B@^;
@^A := B@^;
^^A := B@^;
@@A := B^^;
^@A := B^^;
@^A := B^^;
^^A := B^^;
@@A := @B@;
^@A := @B@;
@^A := @B@;
^^A := @B@;
@@A := ^B@;
^@A := ^B@;
@^A := ^B@;
^^A := ^B@;
@@A := @B^;
^@A := @B^;
@^A := @B^;
^^A := @B^;
@@A := ^B^;
^@A := ^B^;
@^A := ^B^;
^^A := ^B^;
@@A := @@B;
^@A := @@B;
@^A := @@B;
^^A := @@B;
@@A := ^@B;
^@A := ^@B;
@^A := ^@B;
^^A := ^@B;
@@A := @^B;
^@A := @^B;
@^A := @^B;
^^A := @^B;
@@A := ^^B;
^@A := ^^B;
@^A := ^^B;
^^A := ^^B;

Which of the lines above will actually compile ?

You may let A and B be any type you wish to make it compile ;)

Bye,
Skybuck.
c***@gmail.com
2020-01-11 21:47:27 UTC
Permalink
Why would anybody be bored with Oberon?
Post by s***@hotmail.com
Which of the lines above will actually compile ?
Huh? Did you not know that the @ character is not a valid symbol in Pascal?

Regards,
Chris Burrows
CFB Software
http://www.astrobe.com
August Karlstrom
2020-01-11 22:57:21 UTC
Permalink
Post by c***@gmail.com
Why would anybody be bored with Oberon?
Maybe because it does not invite the programmer to do clever tricks.

"one programmer places a one-line program on the desk of another and
either he proudly tells what it does and adds the question “Can you code
this in less symbols?” —as if this were of any conceptual relevance!— or
he just asks “Guess what it does!”. From this observation we must
conclude that this language as a tool is an open invitation for clever
tricks; and while exactly this may be the explanation for some of its
appeal, viz. to those who like to show how clever they are, I am sorry,
but I must regard this as one of the most damning things that can be
said about a programming language."

-- Edsger W. Dijkstra ("The Humble Programmer")


-- August

Continue reading on narkive:
Loading...