[Swift-devel] @filenames (was: Small issue)

Ben Clifford benc at hawaga.org.uk
Wed Oct 22 00:54:54 CDT 2008


> trace(@strcat("Files: ", at filenames(fileArray)));

@filenames is a funny function - it doesn't have a swift data type for its 
return value(!). Especially, it doesn't return a SwiftScript array. Its 
intended for use in an app {} block to have one expression evaluate to 
multiple commandline parameters.

If you want the filenames printed as a single string with space 
separations, you can say @filename(fileArray) (at least according to the 
user guide); but use @filenames in app {} block parameters.

My recent thinking on this has been that @filenames should return a 
SwiftScript array rather than its present secret magic datatype (actually 
a karajan list, I think, or something like that), and things lie app {} 
and trace modified to cope with that.

-- 




More information about the Swift-devel mailing list