in reply to Class template support in XS

What do you mean by "convert them to Perl"?

XS is essentially a bunch of extern C bindings for your code. By the time your template using source has been compiled and linked the templates have vanished and there is nothing template related for the Perl side code to know about.

True laziness is hard work

Replies are listed 'Best First'.
Re^2: Class template support in XS
by bipham (Novice) on Mar 16, 2012 at 18:57 UTC
    Hi, What I was talking about is the generic function/class support in XS? It somehow gives me a lot of error when compiled.

      Were you using a C++ compiler? Actually, judging by the questions you are asking I suspect you are trying to run before you can roll over. Have you worked through the perlxstut successfully?

      Note: asking "Is it possible" will get different answers than "How do I" or "I have this problem ...".

      True laziness is hard work
        Hi, I was able to implement most part of the database I designed, only when it comes to template class that I got stucked.

        I have cells that can be instances of either class "module" or class "macro". I then have many instances of class "instance" that need to refer to the cell above. So I would like to either create a template function in class "instance" or a template class for a wrapper class for either a module or a macro.

        Hopefully you can understand what I was trying to do so you can help me find out how use template in XS.

        Thank you, I really appreciate your help