[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Re: Why does not replace the return value type(i.e. GCobject*) of luaC_newobj() function with the ty
From:       Ranier Vilela <ranier.vf () gmail ! com>
Date:       2020-10-27 11:07:47
Message-ID: CAEudQArtyTR+Pu0cddd_SJrUQDVfBZHMJ00Nh1-jh-ykq9p1SQ () mail ! gmail ! com
[Download RAW message or body]

Em qui., 22 de out. de 2020 =C3=A0s 23:14, =E5=AD=99=E4=B8=96=E9=BE=99 suns=
hilong <
sunshilong369@gmail.com> escreveu:

> Hi, list
>
> Why does not replace the return value type(i.e. GCobject*) of
> luaC_newobj() function with the type of union GCunion* to avoid
>
Are you suggesting creating a new type?
GCunion*

calling the explicit cast(i.e. gco2t, gco2p, gco2u and etc.) and make
> the code more concise?
>
Can you elaborate a small example?

regards,
Ranier Vilela

[Attachment #3 (text/html)]

<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em qui., 22 \
de out. de 2020 às 23:14, 孙世龙 sunshilong &lt;<a \
href="mailto:sunshilong369@gmail.com">sunshilong369@gmail.com</a>&gt; \
escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi, list<br> <br>
Why does not replace the return value type(i.e. GCobject*) of<br>
luaC_newobj() function with the type of union GCunion* to \
avoid<br></blockquote><div>Are you suggesting creating a new type?</div><div> \
GCunion*   <br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px \
0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> calling the \
explicit cast(i.e. gco2t, gco2p, gco2u and etc.) and make<br> the code more \
concise?<br></blockquote><div>Can you elaborate a small example?<br></div><div>  \
</div>regards,</div><div class="gmail_quote">Ranier Vilela<br></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic