|
From: | Donald Winiecki |
Subject: | Re: GLOBALSZ space problem... |
Date: | Thu, 6 Aug 2015 10:46:06 -0600 |
I implemented XGP, an IDE for gprolog on the mac, that is implemented *in* gprolog. It runs fine. Menus, Windows, Graphics (drawing pictures); all done in gprolog as extended by XGP.
I make very slight use of globals - I would recommend parameter passing for state or asserting/retracting clauses where feasible. The parameter passing approach makes the best use of the prolog execution model with its semi-magical heap garbage collection.
I use the DCG notation a lot in various programs where I want to pass a context around among a collection of predicates.
<snip>
[Prev in Thread] | Current Thread | [Next in Thread] |