close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 13 years ago

Last modified 13 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.

Change History (0)

Note: See TracTickets for help on using tickets.