Author Topic: Defer Mechanism for FreePascal  (Read 6042 times)


  • Hero Member
  • *****
  • Posts: 572
Re: Defer Mechanism for FreePascal
« Reply #15 on: November 20, 2022, 11:41:02 am »
Why to add 'property x', better to add 'procedure Add'.

I see your point.

However defer.x := some code means defer execution of some code

In other languages defer is a keyword meaning that, and this is meant to approximate how it is used elsewhere.

I can see how for some defer.add(some code) makes more sense.

I'll keep x  but I changed assign to add and made it public.

I updated my example.

« Last Edit: February 07, 2023, 07:22:42 pm by Bogen85 »


TinyPortal © 2005-2018