[Swift-devel] trying v2 stdlib

Mihael Hategan hategan at mcs.anl.gov
Mon Jun 8 13:46:15 CDT 2015


Yes. When you import v2 you lose v1.

Mihael

On Mon, 2015-06-08 at 13:34 -0500, Ketan Maheshwari wrote:
> Trying this. Could it be the case that importing the stdlib.v2
> suppresses the other functions:
> 
> $ swift const.swift
> Swift trunk git-rev: f1abaa217c4e7c4b18b39e2323c572d9e0abc6d8 heads/master 6370
> RunID: run007
> Could not start execution:
> Compile error in procedure invocation at 6:
> No function or procedure 'tracef' found
> 
> tracef() works when I remove the import line.
> 
> Here is my test script:
> 
> import "stdlib.v2";
> 
> //float PI=3.14159;
> //float E=2.71828;
> tracef("%f, %f\n" , PI,E);
> 
> --
> Ketan
> 
> On Fri, Jun 5, 2015 at 2:29 PM, Mihael Hategan <hategan at mcs.anl.gov> wrote:
> > Hi,
> >
> > Mike asked about how one can try the v2 library, so here it is:
> >
> > 1. use trunk
> > 2. see https://github.com/swift-lang/swift-k/wiki/StandardLibrary for
> > some documentation. The koala is the sign that a function is implemented
> > in /K.
> > 3. use
> >        import "stdlib.v2";
> >    in the beginning of your script.
> >
> > Mihael
> >
> > _______________________________________________
> > Swift-devel mailing list
> > Swift-devel at ci.uchicago.edu
> > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel





More information about the Swift-devel mailing list