Damn, that's beautiful. Can you make sure it gets into the Wiki
somewhere prominent?
Henry Rich
On 11/19/2021 9:03 PM, Raul Miller wrote:
Actually, thinking about this, there's a way of abusing the parser to
express tacit definitions in a multiline format that's fairly
readable. For this example:
glqtextmetrics=: _{{
m=. '"',libjqt,'" glqtextmetrics ',(IFWIN#'+'),' i *i'
u=. m&cd@(<7#00)
(1&{:: [ chkgl2)@u"1
}}
This is kind of a one-off approach, though, and when putting together
a library like gl2 it might be better to encapsulate some of this for
reuse.
Thanks again,
--
This email has been checked for viruses by AVG.
https://www.avg.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm