Carp/examples/drop.carp
Veit Heller d20414e87d
feat: Add drop interface (#1088)
* add sketch for drop

* add drop example

* correct drop ordering

* fix: simplify drop and add to deleter

* docs: add drop docs

* fix: use a sound lifetime var
2021-01-31 21:15:10 +01:00

12 lines
152 B
Plaintext

(deftype A [])
(defmodule A
(sig drop (Fn [(Ref A)] ()))
(defn drop [a]
(IO.println "Hi from drop!"))
)
(defn main []
(let [a (A)]
()))