Newsgroups: comp.lang.apl
From: "David Liebtag" <LIEBTAG@STLVM20.VNET.IBM.COM>
Subject: How do I stay organized in apl2 ?
Message-ID: <Ctpw7x.CFE@watserv1.uwaterloo.ca>
Originator: daemon@watserv1.uwaterloo.ca
Sender: news@watserv1.uwaterloo.ca
Organization: University of Waterloo
Date: Fri, 29 Jul 1994 19:44:43 GMT
Lines: 20

Henrick,

You could convert all the global variables to nilladic
functions, set a trace vector on each of them, run your
applications, and notice which ones never execute.
Here's a way to convert them to nilladic functions:

  NL is Enclose[2] QuadNL 2
  TF is 2 QuadTF Each NL
  TF is (TF Iota Each 'Is') Drop Each TF
  QuadEx Disclose NL
  QuadFX Each ,/[1]Enclose Each Disclose((Enclose 'R is') ...
    , Each NL)((Enclose 'R is'), Each TF)

This should work if none of your variables are too large.


Regards,
David Liebtag
IBM APL Products and Services

