[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Type of points2set



On Wed, Jul 02, 2003 at 12:05:58PM -0400, CHEN FU wrote:
> There's type associated with each points to set used in spark. Is it true
> that I can't add a node with incompatable type into that points to set?

This is true.

> And is p2set.setType(Scene.v().getRefType("java.lang.Object"))
> the right way to get around this without implementing my own points to
> set?

This should work. An easier, supported alternative would be:
p2set.setType(null);

If the type is null, the points-to set accepts every node, regardless of
its type.

> Sorry for the silly question.

Not a silly question at all.

Ondrej