Usage of SINGLE in Arrays

From: Bob Nash <BNash_at_smud.org>
Date: Mon, 21 Aug 2000 14:56:28 -0700

Just discovered that the works (of course):

REQUIRES VALUES

CLASS site
        SINGLE site1
        SINGLE site2
END-CLASS

site BUILDS mysite

1111 TO mysite site1
2222 TO mysite site2

( OR)

1111 mysite TO site1
2222 mysite TO site2

But, this does not work:

5 site BUILDS[] mysite[]
1111 TO 3 mysite[] site1
2222 TO 2 mysite[] site1

For SINGLE to work in an array, it seems that you must use the second form:

1111 3 mysite[] TO site1
2222 2 mysite[] TO site2
Received on Mon Aug 21 2000 - 15:05:30 PDT


Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 09-Feb-2012. Archive updated nightly.