Skip to content

Mirror of: Knockoff. This is an unofficial mirror of the Knockoff Bitbucket repository and is for convenience use only. It is synchronized at irregular intervals. For submitting patches or bug reports, go to https://bitbucket.org/sglienke/knockoff

License

Notifications You must be signed in to change notification settings

FSharpCSharp/Knockoff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knockoff

A simple prototype inspired by Knockout.js to show how MVVM in Delphi can work.

Observable

Core of the library is the Observable type which is an anonymous method type which is overloaded. So it combines being getter and setter in one type. Following code example shows how to get and set the value of an observable.

#!delphi

var
  o: Observable<Integer>;
  i: Integer;
begin
  o := Observable.Create(42);
  i := o(); // calls the function: T overload
  o(i + 1); // calls the procedure(const value: T) overload  

About

Mirror of: Knockoff. This is an unofficial mirror of the Knockoff Bitbucket repository and is for convenience use only. It is synchronized at irregular intervals. For submitting patches or bug reports, go to https://bitbucket.org/sglienke/knockoff

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages