On Mon, 2006-10-02 at 16:47 +0200, Klas I wrote:
> Hi!
>
> I don't think I've seen the keyword virtual in Felix before.
> Is it used in other places besides type classes?
Nope, it's brand new and possibly temporary. Erick doesn't
really like this as a way of specifying interfaces,
and I think I agree .. however I needed something that
didn't break lots of library code fast, to get typeclasses
working.
fun f:int->int;
isn't an interface .. it means
fun f: int -> int = "f($1)";
so I used
virtual fun f:int->int;
to specify an interface. But really the first form seems
right for an interface.. which means we'd need something
like
fun f: int -> int = auto;
for Felix to auto generate the C binding.
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language