Re: How to bind a static member variable

Lorenzo Pistone <[email protected]> Mon, 08 Apr 2013 12:32:22 +0200
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============1820499967530644485==
Content-Type: multipart/alternative;
	boundary="------------070804090200000903060706"

This is a multi-part message in MIME format.
--------------070804090200000903060706
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I've tried to do so, but I'm getting "def_readwrite is not a member of 
luabind". I have successfully bound a static member _function_ though 
(with .def).

On 04/08/2013 08:40 AM, Iliya Trendafilov wrote:
> Hi,
>
> In the (rather old) docs, there's an example binding static function: 
> http://www.rasterbar.com/products/luabind/docs.html#nested-scopes-and-static-functions
> Binding static members should be obvious from there
>
>
>
> On Sun, Apr 7, 2013 at 1:52 PM, Lorenzo Pistone 
> <[email protected] <mailto:[email protected]>> wrote:
>
>     Hello,
>     I cannot find any reference on how to bind a static member
>     variable, so
>     that I can access it from lua as myclass.staticmember.
>
>     Cheers.
>
>     ------------------------------------------------------------------------------
>     Minimize network downtime and maximize team effectiveness.
>     Reduce network management and security costs.Learn how to hire
>     the most talented Cisco Certified professionals. Visit the
>     Employer Resources Portal
>     http://www.cisco.com/web/learning/employer_resources/index.html
>     _______________________________________________
>     luabind-user mailing list
>     [email protected]
>     <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/luabind-user
>
>
>
>
> ------------------------------------------------------------------------------
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
>
>
> _______________________________________________
> luabind-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/luabind-user


--------------070804090200000903060706
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">I've tried to do so, but I'm getting
      "def_readwrite is not a member of luabind". I have successfully
      bound a static member _function_ though (with .def).<br>
      <br>
      On 04/08/2013 08:40 AM, Iliya Trendafilov wrote:<br>
    </div>
    <blockquote
cite="mid:CAA9zKUsLNscELZhS2yEueh2_z+KEup0b5hgiv8Ts=ZTV+svNFA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Hi,<br>
            <br>
          </div>
          In the (rather old) docs, there's an example binding static
          function: <a moz-do-not-send="true"
href="http://www.rasterbar.com/products/luabind/docs.html#nested-scopes-and-static-functions">http://www.rasterbar.com/products/luabind/docs.html#nested-scopes-and-static-functions</a><br>
        </div>
        Binding static members should be obvious from there<br>
        <br>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Sun, Apr 7, 2013 at 1:52 PM, Lorenzo
          Pistone <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:[email protected]" target="_blank">[email protected]</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
            I cannot find any reference on how to bind a static member
            variable, so<br>
            that I can access it from lua as myclass.staticmember.<br>
            <br>
            Cheers.<br>
            <br>
------------------------------------------------------------------------------<br>
            Minimize network downtime and maximize team effectiveness.<br>
            Reduce network management and security costs.Learn how to
            hire<br>
            the most talented Cisco Certified professionals. Visit the<br>
            Employer Resources Portal<br>
            <a moz-do-not-send="true"
              href="http://www.cisco.com/web/learning/employer_resources/index.html"
              target="_blank">http://www.cisco.com/web/learning/employer_resources/index.html</a><br>
            _______________________________________________<br>
            luabind-user mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:[email protected]">[email protected]</a><br>
            <a moz-do-not-send="true"
              href="https://lists.sourceforge.net/lists/listinfo/luabind-user"
              target="_blank">https://lists.sourceforge.net/lists/listinfo/luabind-user</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
<a class="moz-txt-link-freetext" href="http://www.cisco.com/web/learning/employer_resources/index.html">http://www.cisco.com/web/learning/employer_resources/index.html</a></pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
luabind-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/luabind-user">https://lists.sourceforge.net/lists/listinfo/luabind-user</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>

--------------070804090200000903060706--


--===============1820499967530644485==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
--===============1820499967530644485==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user

--===============1820499967530644485==--