yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #08865
Re: [Bug 1031703] Re: "extra" value for bodies
2012/8/2 Chareyre <1031703@xxxxxxxxxxxxxxxxxx>
> >3/ store the string representation of desired variable
>
> Yes that one too. I aprooved when I read it but didn't recall it.
> Not sure it would be easier than void pointer though, since it would need
> a lot of typecasting.
> Your example is ok in python but the vector3 can't be used in c++ at this
> point. Getting arbitrary types from a string in c++ is another story.
> I guess Christian has in mind to use e.g. clump volume in some c++
> algorithm (right?), else there is little interest in adding variables to
> bodies.
>
>
I was just thinking about using it in python, if it is supposed to be used
in c++, then my solution definitely isn't the best one :-)
Jan
References