Nomenclature/fr
한국어 · Deutsch · English · Español · Français · Português · Русский · 日本語
- les propriétés ne devraient pas commencer par un verbe, mais avec un nom
- les méthodes devraient commencer par un verbe
- Les noms de méthode « GetFoo » sont réservée aux accesseurs en lecture de propriété "Foo"
- Les noms de méthode « SetFoo » sont réservée aux accesseurs en écriture de propriété "Foo"
property OnFoo: TNotifyEvent read GetFoo write SetFoo;- Les noms de méthode "DoFoo" sont réservées à l'appel des evénements "OnFoo"
procedure TForm1.DoFoo;
begin
if Assigned(FOnFoo) then
FOnFoo(Nil);
end;- Suggestion: employer "UpdateFoo" au lieu de "DoSetFoo" pour mettre à jour certains membres ou pour rendre une assertion valide
- Les propriétés d'événement devraient être nommées On.... en commençant par un adjectif, ensuite un verbe, puis un nom (d'autres sont facultatifs): comme OnFilterRecord, OnPostError, OnDblClick (adjectif au verbe d'abord)
- Les notifications pour les descendants de TControl devraient être nommées CNxxx
From the Free Pascal wiki, page "Nomenclature/fr", as it stood on 2020-02-21 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
Edited on wiki.freepascal.org by 4 people, 2007–2020
From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.
| When | Who | What changed |
|---|---|---|
| Paulatreides | New page: {{Nomenclature}} * properties should not start with a verb, but with a noun * methods should start with a verb * method names "GetFoo" are reserved for property "Foo" getters * method nam... | |
| Paulatreides | ||
| Olaf | (minor) | |
| E-ric | ||
| E-ric | (minor) | |
| Trev | Fixed syntax highlighting; removed categories included in template (minor) |
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
