Ruud H.G. van Tol on Tue, 04 Nov 2025 21:15:41 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Comments between lines raise syntax error



On 2025-11-04 16:37, Bill Allombert wrote:
On Sat, Nov 01, 2025 at 02:29:44PM +0100, Ruud H.G. van Tol wrote:
As an alternative style, also consider:

   { my
     ( level4 =
       [ e4
         /* Level 1 multiplied by Level 3 */
       , z1 * z5
       , z1 * z6
       , z1 * z7
         /* Level 2 multiplied by itself */
       , z2 * z2
       , z2 * z3
       , z3 * z3
       ]
     );
   }
This does not quite work, since now level4 is only defined inside the braces!

Right, I hadn't put an
  /* add your further code here */
before the end-brace.

Academic examples, they never fail!
:)

-- Ruud