[fpc-pascal] methods of an object to create others objects

Marcos Douglas md at delfire.net
Tue Jul 6 19:54:29 CEST 2010


On Tue, Jul 6, 2010 at 2:04 PM, Reimar Grabowski <reimgrab at web.de> wrote:
> On Tue, 6 Jul 2010 12:05:36 -0300
> Marcos Douglas <md at delfire.net> wrote:
>
>> We talk about just *functions* or we talk about *methods* too?
> It is meant for 'method functions', too. But I don't follow that rule strictly and
> try to use a descriptive name that indicates that a function effects something outside its scope.

Like obj1.CreateObj() ? =)

>> I agree with you, but in part... If a *function* should only return a
>> value then, what do a *procedure*? What are the good pratice for
>> procedures?
> Good naming and do what you like.

:) Okay... thanks...  ;-)


Marcos Douglas



More information about the fpc-pascal mailing list