News for hackers. Stuff that matters.
Re:Checked C by kelnos on Wednesday December 21, 2022 @03:29PM (#34085994)
I'm completely unfamiliar with the language but was able to read it from left-to-right very easily:

    var signal*: proc (a1: cint; a2: proc (a1: cint)): proc (a1: cint)
That reads to me as:

Variable signal is a pointer to a function that that takes two arguments (an int, and a function that takes an int), and returns a function that takes one argument (an int).

Of course, I'm assuming my interpretation is correct... perhaps it's not ;)

Re:Checked C by elcritch on Wednesday December 21, 2022 @03:41PM (#34086128)
That's right. It's actually just an ugly bit of code though it's pragmatic.

Note that Nim uses "*" as a public symbol sigil not a pointer. Its a bit odd at first coming from C but is nice and consistent.