Const parameter

The Const parameter is said to be able to prevent modification of the argument value, but i am able to reassign A as seen below perfectly? So what's the difference between a Const parameter and the default parameter? (other than it working as pointer and hence saving memory for large arguments)[code]procedure Example(Const A: Integer);begin A:=5;end; [/code]

Comments

Const declaration takes the assigned value of it the first time a value is assigned...

I've never seen a declaration like urs frankly dont know the need of it, but if you do declare a const variable at outside of the procedure variable inputs you cannot change the value... Frankly im surprised your declaration worked...