[Swift-user] A swiftscript that doesn't seem to terminate
Ben Clifford
benc at hawaga.org.uk
Mon Oct 15 12:20:58 CDT 2007
In a more fully implemented implementation, you'd get an error on the
second line here indicating that variables can only have a single value
(variable is not really the right word for them, perhaps)
> outputFromSplitter = process_A(inputToSplitter);
> inputToSplitter = process_A(outputFromSplitter);
instead of failure to terminate.
On Mon, 15 Oct 2007, Mihael Hategan wrote:
> You should not reuse variables. In other words updating the value of a
> variable is something that doesn't have proper semantics in Swift, since
> it's dataflow oriented.
>
> Mihael
>
> On Mon, 2007-10-15 at 12:43 -0400, Allen, M. David wrote:
> > This SwiftScript (toy code written to test an idea) doesn't seem to
> > terminate. It doesn't use much in the way of resources, it
> > just....never quits running.
> >
> > Any thoughts?
> >
> > blackbox_A, blackbox_B, and blackbox_C are all aliases for "echo" in
> > my tc.data.
> >
> > $ swift -verbose -dryrun example.dtm
> > Using sites file: /home/dmallen/swift/vdsk-0.3/etc/sites.xml
> > Using tc.data: /home/dmallen/swift/vdsk-0.3/etc/tc.data
> > Swift v0.3 r1319 (modified locally)
> >
> > Swift v0.3 r1319 (modified locally)
> >
> > RunID: 20071015-1243-4apur7d1
> > RunID: 20071015-1243-4apur7d1
> >
> > (...)
> >
> > --
> > M. David Allen
> >
> > _______________________________________________
> > Swift-user mailing list
> > Swift-user at ci.uchicago.edu
> > http://mail.ci.uchicago.edu/mailman/listinfo/swift-user
>
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-user
>
>
More information about the Swift-user
mailing list