Skip to content

0xae/objective-m

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

objective-m

objective-m is an unstable and buggy and primitive implementation of message-passing and object-oriented programming pionered by smalltalk and Io. In other words, it means that everything (including conditionals and looping) is done through message-passing.

Building up things

objective-m is written in pure ISO C++0x, so it shall compile fine on unix/linux. To build the shell run:

cd src && make
bin/objm

Example

Read something from the user, convert it to an atom, and doing some comparisons with it.

[yourname =: [IO readline]]
[Func ifelse: [yourname ==: @"ayrtoni"],
              [@"ayrtoni mentioned" println],
              {
                [@"Some dude " print];
                [yourname println]
              }]

About

objective-m is a fun smalltalk, that borowed some syntax from objective-c.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published