[Swift-devel] Call function Map-Reduce
Yadu Nand
yadudoc1729 at gmail.com
Tue Aug 9 14:47:58 CDT 2011
Hi,
I've been working on implementing a call function which
would allow function calls in swift using string identifiers
for procedures.
In order to do this we planned to use karajan's
executeElement which I think needs a slightly different
definition for user defined elements.
int x=5;
(int out) old_func (int inp) {
<body>
}
old_func(x);
used to translate into the following format :
<element name="old_func arguments="out,inp" >
<body>
</element>
<old_func>
<variable> x </variable>
</old_func>
In order to have the calls using executeElement we need
the following style
<set name="new_func">
<element arguments="inp">
...
</set>
<executeElement>
<variable>new_func</variable>
<string>inp</string>
<executeElement>
But how do we handle the output variable ? I don't see any
documentation on this ?
--
Thanks and Regards,
Yadu Nand B
More information about the Swift-devel
mailing list