Using a class in an exe in Boo

Boo is great for lightweight experiments:

=== ===

namespace foo

class myclass:
    def foo():

c = myclass()


=== ===

import foo from “myclass.exe”

c = myclass()


Create the two above files.

Compile both with the booc compiler. 

 run myclass2.exe

This shows how easy it is to extend a .net app in Boo. 

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s