Sha256: 306f708d5c0c3b4ecc9c8b26a5073f0b6d19762b905a34d073ea450e38ff3efd

Contents?: true

Size: 535 Bytes

Versions: 35

Compression:

Stored size: 535 Bytes

Contents

//========================================================
// Example solution to exercise.
//
// A simple hello function would suffice, however this
// solution is mimicking the Ruby hello-world exercise
//========================================================
unit uHelloWorld;

interface

type
  THelloWorld = class
  public
    class function hello(name: string='World'): string; static;
  end;

implementation

class function THelloWorld.hello(name: string='World'): string;
begin
  result := 'Hello, ' + name + '!';
end;

end.

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
trackler-2.0.6.29 tracks/delphi/exercises/hello-world/uHelloWorldExample.pas
trackler-2.0.6.28 tracks/delphi/exercises/hello-world/uHelloWorldExample.pas
trackler-2.0.6.27 tracks/delphi/exercises/hello-world/uHelloWorldExample.pas
trackler-2.0.6.26 tracks/delphi/exercises/hello-world/uHelloWorldExample.pas
trackler-2.0.6.25 tracks/delphi/exercises/hello-world/uHelloWorldExample.pas
trackler-2.0.6.24 tracks/delphi/exercises/hello-world/uHelloWorldExample.pas
trackler-2.0.6.23 tracks/pascal/exercises/hello-world/uHelloWorldExample.pas
trackler-2.0.6.22 tracks/pascal/exercises/hello-world/uHelloWorldExample.pas
trackler-2.0.6.21 tracks/pascal/exercises/hello-world/uHelloWorldExample.pas
trackler-2.0.6.20 tracks/pascal/exercises/hello-world/uHelloWorldExample.pas
trackler-2.0.6.19 tracks/pascal/exercises/hello-world/uHelloWorldExample.pas
trackler-2.0.6.18 tracks/pascal/exercises/hello-world/uHelloWorldExample.pas
trackler-2.0.6.17 tracks/pascal/exercises/hello-world/uHelloWorldExample.pas
trackler-2.0.6.16 tracks/pascal/exercises/hello-world/uHelloWorldExample.pas
trackler-2.0.6.15 tracks/pascal/exercises/hello-world/uHelloWorldExample.pas
trackler-2.0.6.14 tracks/pascal/exercises/hello-world/uHelloWorldExample.pas
trackler-2.0.6.13 tracks/pascal/exercises/hello-world/uHelloWorldExample.pas
trackler-2.0.6.12 tracks/pascal/exercises/hello-world/uHelloWorldExample.pas
trackler-2.0.6.11 tracks/pascal/exercises/hello-world/uHelloWorldExample.pas
trackler-2.0.6.10 tracks/pascal/exercises/hello-world/uHelloWorldExample.pas