Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2000-09

Re: (no subject)

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jonas Maebe
Show quoted text 5 lines
> The problem is that const parameters are passed by reference (ie. the > address of the value is pushed instead of the value itself). Function > results do not have an address. > This is wrong!

You're right, I should test more before I reply :( I believe it was that way in TP though (but I can't verify it in the help, since that even doesn't mention const parameters)

Jonas