Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce88b9b

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 parent2a07e65 commitce88b9b

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)

[8]ページ先頭

©2009-2025 Movatter.jp