On Sun, 2006-09-03 at 19:37 -0400, Peter Tanski wrote:

> To get over this problem (in a congruent type-safe way), you need a  
> function that can operate over a general data type based on its  
> form.  The problem with the implementation as I attempted to test it  
> was the constructors in unions.  When I tried this (just to test the  
> syntax better):
> ---------------------
> typedef typecase[clst] C clst => clst
>               endcase a1 = company;

> I get an "unknown" parser error. 

You have the typedef syntax backwards:

typedef company = typecase[clst] C clst => clst endcase;

Also you'd get an error on 'a1' here .. what is 'a1'?

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to