[X3D-Ecosystem] Should CPPON support CDATA Sections?

John Carlson yottzumm at gmail.com
Fri Oct 4 18:30:07 PDT 2024


Really?  See:
https://web.dev/articles/emscripten-embedding-js-snippets

On Fri, Oct 4, 2024 at 8:28 PM Myeong Won Lee <myeongwonlee at gmail.com>
wrote:

> Dear John,
>
> I am sorry for my late reply.
>
> I don't think that we can include the CDATA section of JavaScript in C++
> because we cannot mix JavaScript and C++.
> Rather, I would suggest that the CDATA section be converted to a C++
> method.
>
> Sincerely,
>
> Myeong
>
> On Sat, Oct 5, 2024 at 8:14 AM John Carlson <yottzumm at gmail.com> wrote:
>
>> I haven’t heard a response?
>>
>> Is there some way of translating X3D XML CDATA (script)  sections to a
>> C++ standard, instead of something Microsoft specific?  How do I embed
>> JavaScript in C++?
>>
>> Thanks,
>>
>> John
>>
>> On Sat, Apr 6, 2024 at 4:36 AM John Carlson <yottzumm at gmail.com> wrote:
>>
>>> Should CPPON (C++ Object Notation) support embedded Script and Shader
>>> CDATA sections?
>>>
>>> C++ SAI examples supports (JavaScript) scripting by wrapping CDATA
>>> section lines in _T() macros, I gather.  This seems to be Microsoft
>>> specific?  Should I adopt URLs for CDATA sections/Scripting in CPPON?
>>>
>>> What's the best standard for including scripts in C++ code?
>>>
>>> Thanks!
>>>
>>> John
>>>
>>
>
> --
>
> Myeong Won Lee, PhD, CEO
>
> VRSTA Inc.
>
> GwangPyeong-ro 56-Gil 8-13,
> <https://www.google.com/maps/search/GwangPyeong-ro+56-Gil+8-13,%C2%A0+Gangnam-gu,+Seoul,+06367,+Korea?entry=gmail&source=g>Gangnam-gu,
> Seoul, 06367, Korea
> <https://www.google.com/maps/search/GwangPyeong-ro+56-Gil+8-13,%C2%A0+Gangnam-gu,+Seoul,+06367,+Korea?entry=gmail&source=g>
>
> E-mail) myeongwonlee at gmail.com, mwlee at suwon.ac.kr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-ecosystem_web3d.org/attachments/20241004/dec42768/attachment.html>


More information about the X3D-Ecosystem mailing list