search for: lua_cpcal

Displaying 5 results from an estimated 5 matches for "lua_cpcal".

Did you mean: lua_cpcall
2019 Mar 29
4
Use of C++ in Packages
...not realistic and the current R API does not allow safe use of C++ exceptions what are the alternatives? One thing we could do is look how this is handled in other languages written in C which also use longjmp for errors. Lua is one example, they provide an alternative interface; lua_pcall[3] and lua_cpcall[4] which wrap a normal lua call and return an error code rather long jumping. These interfaces can then be safely wrapped by RAII - exception based languages. This alternative error code interface is not just useful for C++, but also for resource cleanup in C, it is currently non-trivial to handl...
2019 Mar 29
0
Use of C++ in Packages
...does not > allow safe use of C++ exceptions what are the alternatives? > > One thing we could do is look how this is handled in other languages > written in C which also use longjmp for errors. > > Lua is one example, they provide an alternative interface; > lua_pcall[3] and lua_cpcall[4] which wrap a normal lua call and return > an error code rather long jumping. These interfaces can then be safely > wrapped by RAII - exception based languages. > > This alternative error code interface is not just useful for C++, but > also for resource cleanup in C, it is curre...
2019 Mar 29
3
Use of C++ in Packages
...e of C++ exceptions what are the alternatives? > > > > One thing we could do is look how this is handled in other languages > > written in C which also use longjmp for errors. > > > > Lua is one example, they provide an alternative interface; > > lua_pcall[3] and lua_cpcall[4] which wrap a normal lua call and return > > an error code rather long jumping. These interfaces can then be safely > > wrapped by RAII - exception based languages. > > > > This alternative error code interface is not just useful for C++, but > > also for resource c...
2019 Mar 29
0
Use of C++ in Packages
...what are the alternatives? >>> >>> One thing we could do is look how this is handled in other languages >>> written in C which also use longjmp for errors. >>> >>> Lua is one example, they provide an alternative interface; >>> lua_pcall[3] and lua_cpcall[4] which wrap a normal lua call and return >>> an error code rather long jumping. These interfaces can then be safely >>> wrapped by RAII - exception based languages. >>> >>> This alternative error code interface is not just useful for C++, but >>> als...
2019 Mar 30
3
Use of C++ in Packages
...s? >>>> >>>> One thing we could do is look how this is handled in other languages >>>> written in C which also use longjmp for errors. >>>> >>>> Lua is one example, they provide an alternative interface; >>>> lua_pcall[3] and lua_cpcall[4] which wrap a normal lua call and return >>>> an error code rather long jumping. These interfaces can then be safely >>>> wrapped by RAII - exception based languages. >>>> >>>> This alternative error code interface is not just useful for C++, but...