Recent

Author Topic: Inheritance of 'stored False' directive...?  (Read 2775 times)

Sieben

  • Sr. Member
  • ****
  • Posts: 256
Inheritance of 'stored False' directive...?
« on: November 17, 2021, 03:40:16 pm »
The inheritance of eg SQLite3Connection is TDatabase -> TSQLConnection -> TSQLite3Connection. For good reasons TDatabase introduces property Connected as:

Code: Pascal  [Select][+][-]
  1. published
  2. //...
  3. property Connected: Boolean read FConnected write SetConnected stored False;

TSQLConnection repeats this as:

Code: Pascal  [Select][+][-]
  1. published
  2. //...
  3. property Connected stored False;

despite the fact that it is already published. TSQLite3Connection doesn't mention it at all. Nevertheless it stores it's Connected status. How come...?

(Please move this if it's a general issue with stored directives)
Lazarus 2.0.10, FPC 3.2.0, .deb install on Ubuntu Xenial 32 / Gtk2 / Unity7

LacaK

  • Hero Member
  • *****
  • Posts: 653
Re: Inheritance of 'stored False' directive...?
« Reply #1 on: November 18, 2021, 07:23:28 pm »
Where do you see that Connected property has stored modifier?
I do not see it in my source files in fcl-db...

Sieben

  • Sr. Member
  • ****
  • Posts: 256
Re: Inheritance of 'stored False' directive...?
« Reply #2 on: November 19, 2021, 03:35:34 pm »
I do, in fcl-db/src/base/db.pas and fcl-db/src/sqldb/sqldb.pp.
Lazarus 2.0.10, FPC 3.2.0, .deb install on Ubuntu Xenial 32 / Gtk2 / Unity7


Sieben

  • Sr. Member
  • ****
  • Posts: 256
Re: Inheritance of 'stored False' directive...?
« Reply #4 on: November 27, 2021, 06:56:16 pm »
I'm using FPC 3.2.0, and here's what I see:

 
Lazarus 2.0.10, FPC 3.2.0, .deb install on Ubuntu Xenial 32 / Gtk2 / Unity7

 

TinyPortal © 2005-2018