Skip to content

Commit ce88b9b

Browse files
committed
From: Jan Wieck <jwieck@debis.com>
just a little correction in the pltcl_guide.nr. Sometimes I changed the name of tuple arguments to numbers like the other args are. Otherwise it wasn't possible to create a function as CREATE FUNCTION f (EMP, EMP) ... LANGUAGE 'pltcl'; The arguments are now accessed in the function as $1(name) vs. $2(name)
1 parent 2a07e65 commit ce88b9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pl/tcl/pltcl_guide.nr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ from the CREATE FUNCTION section of the manual would be defined in Tcl as
121121
.in +4
122122
returns bool as '
123123
.in +4
124-
if {200000.0 < $EMP(salary)} {
124+
if {200000.0 < $1(salary)} {
125125
.in +4
126126
return 't'
127127
.in -4
128128
}
129-
if {$EMP(age) < 30 && 100000.0 < $EMP(salary)} {
129+
if {$1(age) < 30 && 100000.0 < $1(salary)} {
130130
.in +4
131131
return 't'
132132
.in -4

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy