Opened 14 years ago
Last modified 14 years ago
#1397 closed doubt
Error en PutDescription con una función dentro de otra función — at Initial Version
| Reported by: | imendez | Owned by: | Víctor de Buen Remiro |
|---|---|---|---|
| Priority: | normal | Milestone: | Mantainance |
| Component: | Kernel | Version: | head |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Hola, al poner descripción a una función creada dentro de otra función da error. El código es:
Real FunPrueba1(Real r)
{
Real funPrueba2(Real k)
{ 2*k };
PutDescription("Prueba", funPrueba2);
r/2
};
Real AA = FunPrueba1(Pi);
Y el error:
ERROR: [2] funPrueba2 no es un objeto valido para el tipo Real.
[Call stack]
[1] Real FunPrueba1 (Real r)
Warning: [5] La función PutDescription ha fallado en :
PutDescription("Prueba", funPrueba2)
Sin entrar a ver si tiene mucho sentido hacer eso, ¿es normal que dé error?
Un saludo.
Note: See
TracTickets for help on using
tickets.
