Re: [Felix-language] bug

2014-01-13 Thread john skaller
On 13/01/2014, at 4:37 AM, john skaller wrote: > This is a bug: > > class A [T] { virtual fun f : 1 -> T; } > instance A[int] { fun f : 1 -> int = "1"; } > instance A[long] { fun f : 1 -> long = "2L"; } > open A[long]; > //open A[int]; > println$ f (); Now fixed. And since the original problem

Re: [Felix-language] bug

2013-03-05 Thread john skaller
On 05/03/2013, at 1:29 PM, john skaller wrote: > The algorithm which calculates ptf usage is flawed. Fixed. -- john skaller skal...@users.sourceforge.net http://felix-lang.org -- Everyone hates slow websites. So do

Re: [Felix-language] bug with typeclasses and instances?

2008-03-22 Thread john skaller
On 23/03/2008, at 10:30 AM, Erick Tryzelaar wrote: > > typeclass Value[t] { > virtual proc dump: cptr[t] = "$1->dump();"; > } > > But shouldn't this be a type error? It's neat that if we have a fully > implemented typeclass that it works on all types, but here it > obviously won't work. Didn't

Re: [Felix-language] bug with typeclasses and instances?

2008-03-22 Thread Erick Tryzelaar
And just to be clear, if we have a purely virtual function, then it will require an instance: // requires package "llvm"; open C_hack; typeclass Value[t] { virtual proc dump: cptr[t]; } module Type { requires header "#include "; type t = "::

Re: [Felix-language] bug with zero inlining and typeclasses

2007-03-26 Thread Erick Tryzelaar
Erick Tryzelaar wrote: > Thats good to know. We probably should then change all the binaries to > have --inline=0 or below be converted to --inline=1? If you haven't > started doing this, I can if you'd like. > I added this to subversion, but the email hasn't come out yet for some reason. -

Re: [Felix-language] bug with zero inlining and typeclasses

2007-03-25 Thread Erick Tryzelaar
skaller wrote: > Turning off inlining is not allowed any more :) > > You can reduce inlining to low value, but not turn it off. > 0 is equivalent to off. > Thats good to know. We probably should then change all the binaries to have --inline=0 or below be converted to --inline=1? If you haven'

Re: [Felix-language] bug with zero inlining and typeclasses

2007-03-25 Thread skaller
On Sun, 2007-03-25 at 20:54 -0700, Erick Tryzelaar wrote: > Here's a new one: > > ./flx -I. --force --inline=0 foo2.flx Turning off inlining is not allowed any more :) You can reduce inlining to low value, but not turn it off. 0 is equivalent to off. > CLIENT ERROR > Virtual call of 5115 dispa