Sign in Join

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

Mailing lists / fpc-pascal / 2011-10

Does FPC support fields which are only accessible from the object itself, eg. some kind of super private fields

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Frank Church

Private allows access to procedures which the unit, even if they belong to a separate object.

Does FPC support fields which are only accessible from the object itself, not accessble by other objects even if they are in the same unit?

Frank Church ======================= http://devblog.brahmancreations.com

Reply by email

Paul Ishenin
to Frank Church
Frank Church wrote 6 lines
Private allows access to procedures which the unit, even if they belong to a separate object. Does FPC support fields which are only accessible from the object itself, not accessble by other objects even if they are in the same unit?

Yes. Use "strict private" section type.

Best regards,
Paul Ishenin.

Reply by email