[Swift-devel] Overwriting procedures in swift.
Yadu Nand
yadudoc1729 at gmail.com
Tue Aug 9 08:51:00 CDT 2011
Hi,
I've been working on getting an implementation for a feature
which allows calling a function by the string-identifier. During
the discussion with Mihael, we found that swift allows us to
redefine a function with no complaints. We think this is a bug
and a check should be put to prevent this. Inputs on this are
welcome.
Eg.
(int o) f (int i){
o=i;
}
(int z) f (int x){
z= x*5;
}
trace ( f(8) );
Gives output as 40. while swift should throw an error instead.
--
Thanks and Regards,
Yadu Nand B
More information about the Swift-devel
mailing list