summaryrefslogtreecommitdiffstats
path: root/src/commodities.lisp
diff options
context:
space:
mode:
authorEl-BG-1970 <elouan.gros.fr@gmail.com>2022-07-27 17:50:07 +0200
committerEl-BG-1970 <elouan.gros.fr@gmail.com>2022-07-27 17:50:07 +0200
commitbf191a6f96f19adc74879bc543da3a7027c498da (patch)
treed493855e8af162f130938d4f2f54a159aef2555d /src/commodities.lisp
downloadtransacc-bf191a6f96f19adc74879bc543da3a7027c498da.tar.gz
first commit
Diffstat (limited to 'src/commodities.lisp')
-rw-r--r--src/commodities.lisp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/commodities.lisp b/src/commodities.lisp
new file mode 100644
index 0000000..2ce7cb7
--- /dev/null
+++ b/src/commodities.lisp
@@ -0,0 +1,16 @@
+(defpackage :commodities
+ (:use :cl)
+ (:export :new-commodity))
+
+(in-package :commodities)
+
+(defclass commodity ()
+ ((name :initarg :name
+ :reader name)
+ (price :initarg :price
+ :accessor price)))
+
+(defun new-commodity (name price)
+ (make-instance 'commodity
+ :name name
+ :price price))