[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: struct() handling in C++
From: |
Jan Trmal |
Subject: |
Re: struct() handling in C++ |
Date: |
Sun, 5 Feb 2006 02:37:38 +0100 |
User-agent: |
KMail/1.9.1 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi, thanks a lot for you reply!
>
> I'm not sure you really want to throw an error here. Where will it be
> caught? Unless there is a catch block inside the same function where
> the error is thrown, you could be bypassing some of Octave's error
> handling code which could lead to internal inconsistencies in Octave's
> state.
Thanks for this. Unfortunatelly, I'll have to start my project again without
exception, if this is true. I have a lot function, which throw errors in case
of any error and the error is caught one or two levels higer. Shall I realy
abandon using exceptions when writing octave modules?
> | But It seems very complicated to get such as simple datatype as string.
> | Is here any less complicated way than the one I've found? :)
>
> The Octave_map class also includes a "stringfield" convenience
> function that allows extracting a single character string value from a
> struct. You could write the above function as:
Thanks, I haven't noticed this function. I'm sorry .
Regards,
JT
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2-ecc0.1.6 (GNU/Linux)
iD8DBQFD5Vbnjj+Gmuy88sgRAo2rAJ975teQ7Q8O/bBU3NYmBsr3lsBYsgCfbEF0
00fMPJ8drF8A7CwOGIkF9Ns=
=XlED
-----END PGP SIGNATURE-----
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------