Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

HOW CAN I DELEGATE A TYPE METHOD TO A TYPE COMPONENT OBJECT?

0
Posted

HOW CAN I DELEGATE A TYPE METHOD TO A TYPE COMPONENT OBJECT?

0

Use the delegate typemethod statement. It works like delegate method, with these differences: first, it defines a type method instead of an instance method; second, the using clause ignores the %s, %n, and %w %-conversions. Naturally, you can’t delegate a type method to an instance component…Snit wouldn’t know which instance should receive it.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123