001  (ns beowulf.oblist
002    "A namespace mainly devoted to the object list and other top level
003     global variables.
004     
005     Yes, this makes little sense, but if you put them anywhere else you end
006     up in cyclic dependency hell."
007    )
008  
009  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
010  ;;;
011  ;;; Copyright (C) 2022-2023 Simon Brooke
012  ;;;
013  ;;; This program is free software; you can redistribute it and/or
014  ;;; modify it under the terms of the GNU General Public License
015  ;;; as published by the Free Software Foundation; either version 2
016  ;;; of the License, or (at your option) any later version.
017  ;;; 
018  ;;; This program is distributed in the hope that it will be useful,
019  ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
020  ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
021  ;;; GNU General Public License for more details.
022  ;;; 
023  ;;; You should have received a copy of the GNU General Public License
024  ;;; along with this program; if not, write to the Free Software
025  ;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
026  ;;;
027  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
028  
029  (def NIL
030    "The canonical empty list symbol.
031     
032     TODO: this doesn't really work, because (from Clojure) `(empty? NIL)` throws
033     an exception. It might be better to subclass beowulf.cons_cell.ConsCell to create
034     a new singleton class Nil which overrides the `empty` method of 
035     IPersistentCollection?"
036    'NIL)
037  
038  (def oblist
039    "The default environment."
040    (atom NIL))
041  
042  (def ^:dynamic *options*
043    "Command line options from invocation."
044    {})
045