Re: [E-devel] Exception handling with EFL

2011-01-17 Thread The Rasterman
On Mon, 17 Jan 2011 23:31:28 -0200 Gustavo Sverzut Barbieri
 said:

> On Mon, Jan 17, 2011 at 11:27 PM, Mike McCormack
>  wrote:
> > On 01/18/2011 10:20 AM, Vinícius dos Santos Oliveira wrote:
> >> Is there any implementation in Enlightenment to use exception handling in
> >> C?
> >
> > Standard C doesn't support exception handling.  How do you propose it would
> > work?
> 
> I guess he is talking about setjmp/longjmp... IMO just stay out of it,
> if you want use it, but take care to not screw it. No wrappers in efl.

setjmp/longjmp are rather evil and nasty. i'd highly advise avoiding their use.
do the usual - unwind with error returns, or for code you 100% control (eg
within a single function) use goto.

-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Exception handling with EFL

2011-01-17 Thread Gustavo Sverzut Barbieri
On Mon, Jan 17, 2011 at 11:27 PM, Mike McCormack
 wrote:
> On 01/18/2011 10:20 AM, Vinícius dos Santos Oliveira wrote:
>> Is there any implementation in Enlightenment to use exception handling in C?
>
> Standard C doesn't support exception handling.  How do you propose it would 
> work?

I guess he is talking about setjmp/longjmp... IMO just stay out of it,
if you want use it, but take care to not screw it. No wrappers in efl.

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Exception handling with EFL

2011-01-17 Thread Mike McCormack
On 01/18/2011 10:20 AM, Vinícius dos Santos Oliveira wrote:
> Is there any implementation in Enlightenment to use exception handling in C?

Standard C doesn't support exception handling.  How do you propose it would 
work?

thanks,

Mike


--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Exception handling with EFL

2011-01-17 Thread Vinícius dos Santos Oliveira
Is there any implementation in Enlightenment to use exception handling in C?

-- 
Vinícius dos Santos Oliveira

Linux user #481186
Member of COMPE - Laboratório de Computação Pervasiva.

Instituto da Computação at Universidade Federal de Alagoas
Maceió, Alagoas, Brazil

"*The man who has no imagination has no wings*" -Muhammad Ali
"*Freedom is the oxygen of the soul*" -Moshe Dayan
"*Without freedom, no one really has a name*" -Milton Acorda
--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel