On Tue, 2006-10-03 at 08:27 -0700, Erick Tryzelaar wrote:
> Jonathan Kelly wrote:
> > Hi,
> >
> > I have a list of pointer types, and need to see if the current pointer 
> > I'm working on is in the list, so I need a comparison function to send 
> > to mem, but I can't seem to compare pointers: is it possible? If it 
> > isn't, how do I handle this?
> >   
> 
> 
> This should work:
> 
> fun eq[T]: ptr[T] * ptr[*] -> bool = "$1==$2"

.. if you fix the typo .. :)


> But I'm not sure if John wants this exposed, as it probably ends up 
> placing restrictions on garbage collection. John would know more. What 
> are you trying to do?

Have a look at module Carray.

Note these are C pointers not Felix pointers .. they're
not collected anyhow. 

I'll add a comparison for Felix pointers ..



-- 
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

Reply via email to