[Swift-devel] random seed generator?

Ben Clifford benc at hawaga.org.uk
Wed Apr 25 11:53:59 CDT 2007



On Wed, 25 Apr 2007, Mihael Hategan wrote:

> > On Wed, 25 Apr 2007, Mihael Hategan wrote:
> > 
> > > I was trying:
> > > string a;
> > > a = random();
> > > 
> > > But for some reason this translates into random(a).
> > 
> > @random
> 
> that yields "unexpected token"

huh. It seems to not like zero-parameter functions now. I thought it did 
before. Maybe I broke it.

> And it would translate to vdl:random(). I wanted to avoid having an 
> explicit namespace, so that it would pick math:random().

I don't think you can do that any way at the moment, and I'm not terribly 
inclined to have it project all of karajan's function space into 
SwiftScript space by default.

-- 



More information about the Swift-devel mailing list