On 27/08/2014, at 5:11 AM, Ryan Gonzalez wrote:

> On Tue, Aug 26, 2014 at 3:22 AM, john skaller <skal...@users.sourceforge.net> 
> wrote:
> 
> On 26/08/2014, at 10:20 AM, Ryan Gonzalez wrote:
> 
> > Client Error binding expression string
> > CLIENT ERROR
> > Use type as if variable: string
> > In /media/ryan/stuff/felix/build/release/share/lib/std/strings/string.fdoc: 
> > line 16, cols 25 to 2
> > 15:   decoder "::flx::gc::generic::string_decoder"
> > 16: ;
> >                             ^
> > 17: typedef strings = typesetof (string);
> >
> > ??
> 
> BTW: what this means is that somewhere you have used "string"
> as if it were a variable name. I think the diagnostic is telling you where
> string is defined but NOT where the error in your code is.
> 
> AHA! I had written:
> 
> println string;
> 
> instead of:
> 
> println str; // str is the variable name

New code giving better diagnostic in next commit:

// use type as variable error
var x = string;
println$ x;


CLIENT ERROR
Use type as if variable: string
In /Users/johnskaller/felix/ttuv.flx: line 2, cols 9 to 14
1: // use type as variable error
2: var x = string;
           ******
3: println$ x;

See also 
/Users/johnskaller/felix/build/release/share/lib/std/strings/string.fdoc: line 
16, cols 25 to 2
15:   decoder "::flx::gc::generic::string_decoder"
16: ;
                            ^
17: typedef strings = typesetof (string);


--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to