From acd1191fb06a51f70f553c1dc8b47cf245a1c913 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 19 Nov 2018 17:21:08 -0800 Subject: Tweaks and API cleanup. --- compatibility/4.11.nom | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'compatibility') diff --git a/compatibility/4.11.nom b/compatibility/4.11.nom index fdf6660..05edfea 100644 --- a/compatibility/4.11.nom +++ b/compatibility/4.11.nom @@ -28,6 +28,12 @@ upgrade action "set" to "4.11" via (..) %rhs.%i = %entry.2 return (SyntaxTree {type: "Action", source: %tree.source, 1: %lhs, 2: "=", 3: %rhs}) +# Changing filesystem API: +upgrade action (for file %f in %path %body) to "4.11" as (for %f in (files for %path) %body) +upgrade action (%expr for file %f in %path) to "4.11" as [: for %f in (files for %path): add %expr] +upgrade action (line %n in %text) to "4.11" as (%text::line %n) +upgrade action (line number of %pos in %text) to "4.11" as (%text::line number at %pos) + # Deprecating shorthand functions: upgrade action [if all of %items %body, if all of %items then %body] to "4.11" as (..) if (all of %items) %body -- cgit v1.2.3