Skip to content

Commit 272d12f

Browse files
author
Carl Masak
committed
clarify that macros can't be called before they're defined
1 parent f03e922 commit 272d12f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

S06-routines.pod

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Synopsis 6: Subroutines
99

1010
Created: 21 Mar 2003
1111

12-
Last Modified: 19 Oct 2014
13-
Version: 163
12+
Last Modified: 12 Dec 2014
13+
Version: 164
1414

1515
This document summarizes Apocalypse 6, which covers subroutines and the
1616
new type system.
@@ -3142,6 +3142,8 @@ evaluated again, so the two calls below print the same thing:
31423142
say f(); # compile-time call to &f
31433143
say &f(); # runtime call to &f
31443144

3145+
A compile-time call to a macro before its definition is erroneous.
3146+
31453147
=head2 Quasiquoting
31463148

31473149
In aid of returning syntax tree, Perl provides a "quasiquoting"

0 commit comments

Comments
 (0)