Re: Luabind, objects, and exceptions

Daniel Wallin <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
On Fri, May 28, 2010 at 11:56:37PM -0700, Jason McKesson wrote:
> I've discovered something that may constitute a bug. Or, at least, a 
> design flaw.
[...]
> This wouldn't be a problem if luabind::error worked like most exceptions 
> and actually carried error data. I generally do this by having the 
> exception object store a large char[] array. It's not heap-allocated, so 
> copying into/out of this buffer is perfectly fine. Sure, the exception 
> object is huge, but that's better than having information destroyed.

Good point.

Do you want to produce a patch for this? I'd consider both embedding a
fixed size char array and allocating memory and managing it with
reference counting workable solutions.

-- 
Daniel Wallin
BoostPro Computing
http://www.boostpro.com

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.