Recent

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

Bogen85

  • Full Member
  • ***
  • Posts: 164
Re: Defer Mechanism for FreePascal
« Reply #15 on: November 20, 2022, 11:41:02 am »
@bogen85
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.


 

TinyPortal © 2005-2018