Link to home
Create AccountLog in
Avatar of hidrau
hidrauFlag for Brazil

asked on

What is the advantage to have a function or procedure created inside another function or procedure?

Hello Guys,

This is an example:

procedure SumAllValue: Integer;
	   Function Sum_A_B(a, b : integer): Integer;
	   Begin 
	   End;
	Begin 

	  My code here calls the Sum_A_B(x,y)
	End;    

Open in new window


Is there any advantage using that way? Or would it be better to have it in a unit library or even create it for all my unit?

Is it only concept?

Thanks
Alexandre
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of hidrau

ASKER

thanks a lot