From Overbyte
Jump to navigation Jump to search

Main page -> ICS component reference -> Edit new property


function TCoffee.Name(const Parameter: string): string;

Inherited from TCustomCoffee.Name


Name takes a string as argument then do nothing with it and then it returns the same string. Very useful to keep the CPU busy.

Delphi Example

<syntaxhighlight lang="delphi"> for n := 1 to 10 do

BusyString := BusyString + Coffee.Name(BusyString);


C++ Example

<syntaxhighlight lang="cpp"> for (int n = 0; n < 10; n++) {

 BusyString += Coffee->Name(BusyString);


Best practices

The use of this method is discouraged.

How to

There are a lot more interesting things to keep the CPU busy.