• Which line(s) will compile ?

    From skybuck2000@hotmail.com@21:1/5 to All on Fri Jan 10 14:59:09 2020
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From cfbsoftware@gmail.com@21:1/5 to skybu...@hotmail.com on Sat Jan 11 13:47:27 2020
    On Saturday, January 11, 2020 at 9:29:09 AM UTC+10:30, skybu...@hotmail.com wrote:
    Bored with oberon, give this a try:

    Why would anybody be bored with Oberon?

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From August Karlstrom@21:1/5 to cfbsoftware@gmail.com on Sat Jan 11 23:57:21 2020
    On 2020-01-11 22:47, cfbsoftware@gmail.com wrote:
    On Saturday, January 11, 2020 at 9:29:09 AM UTC+10:30, skybu...@hotmail.com wrote:
    Bored with oberon, give this a try:

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)