[Swift-devel] Procedure re-defintion, feature or bug ?

Justin M Wozniak wozniak at mcs.anl.gov
Wed Aug 10 10:00:11 CDT 2011


On Wed, 10 Aug 2011, Ben Clifford wrote:

> All the definitions should be happening "simultaneously".
>
> Mostly this is how I think definitions should work:
>
> Imagine instead of defining f in Swift, you are defining x in the following simultaneous equation:
>
>   x=3
>   x=4
>
> What is the value of x? (remember its a simultaneous equation, not a program...)

Yes, the definitions are simultaneous and inconsistent and Swift should 
report an error.

 	Justin

-- 
Justin M Wozniak



More information about the Swift-devel mailing list