G
Guenther Sohler
Hallo Group,
Due to your great Help in the last Days I was able to
use embedded perl in c for my program. I was also able to
register my own c functions with my perl interpreter useing newXS.
Now I am wondering if its even possible to integrate my own
data type. At the moment I am calculating with integers and floats and
strings. and it works very well.
But due to the graphical nature of my prg it would be nice, if I could
add a new data type eg Point, which contains two floats(x and y)
or a list of Points, (or maybe a list of strings).
Is it possible ?
Maybe I would finally write
$pt=convert_point($x,$y);
How can I implement new data tyes ?
Due to your great Help in the last Days I was able to
use embedded perl in c for my program. I was also able to
register my own c functions with my perl interpreter useing newXS.
Now I am wondering if its even possible to integrate my own
data type. At the moment I am calculating with integers and floats and
strings. and it works very well.
But due to the graphical nature of my prg it would be nice, if I could
add a new data type eg Point, which contains two floats(x and y)
or a list of Points, (or maybe a list of strings).
Is it possible ?
Maybe I would finally write
$pt=convert_point($x,$y);
How can I implement new data tyes ?