Added compatibility file.

This commit is contained in:
Bruce Hill 2018-08-28 15:08:20 -07:00
parent e44acbf338
commit 2ec4f3117e

11
compatibility/3.nom Normal file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env nomsu -V3
#
This file defines upgrades from Nomsu <=2 to Nomsu 3
use "compatibility/compatibility.nom"
upgrade action (method %spec %body) to "3" as (my action %spec %body)
upgrade action (me) to "3" as (%me)
upgrade action (@) to "3" as (%me)
upgrade action (as % %) to "3" via (..)
[] -> (barf "Object API has changed. Use (%obj::action 1 2) instead of (as %obj: action 1 2)")