Automatic Import added ....

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Automatic Import added ....

James Ladd
Redline Smalltalk will automatically import the classes that referenced by a class that are found in the same package.

For example - given:

st/redline/example/Foo.st
st/redline/example/Bar.st

The classes in Foo and Bar (typically just 1 class in each file) can reference the each other without
requiring an import statement. This is a change to previous functionality where Foo would have to
import Bar in order to reference it with the statement  "self import: 'st.redline.Bar'."

We think not having to do this for classes in the same package is easier and nicer.

Where the class you want to reference is NOT in the same package an import statement is still
required.

Note: You don't have to import the classes in the Redline core package as this is also done for
you by the compiler.

The above changes are in github head and will be in 0.4-SNAPSHOT when pushed to the Maven
Sonotype repo.

- James.

Reply | Threaded
Open this post in threaded view
|

Re: Automatic Import added ....

Les Hazlewood
Great news James - thanks for the fix!!!

Best,

Les