help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] [feature] <import: PoolDict> for namespaces


From: Stephen Compall
Subject: [Help-smalltalk] [feature] <import: PoolDict> for namespaces
Date: Sun, 18 May 2008 00:03:50 -0700

Issue status update for http://smalltalk.gnu.org/node/217 Post a follow up: http://smalltalk.gnu.org/project/comments/add/217

Project:      GNU Smalltalk
Version:      <none>
Component:    VM
Category:     feature requests
Priority:     normal
Assigned to:  Unassigned
Reported by:  S11001001
Updated by:   S11001001
Status:       committed

The two commits at the tip of my master as I write this:


a9a46e1... add namespace pragmas, like class pragmas, for new syntax 9d92f75... unexported importation of pools into namespaces for their
classes' methods


Let you do things like this:


Eval [PackageLoader fileInPackages: #('Parser' 'NetClients')]

Namespace current: Test [
   <import: STInST>

   Object subclass: MyTest [
       test [^RBParser]
   ]

   <import: NetClients>

   MyTest extend [
       test2 [^URIResolver]
   ]
]


More or less as documented in sym.c.  Tests are also included, although
namespace pragmas are not tested for Compiler (though the above test
file works).

Accessing pool vars with #at: and friends on the namespace is
explicitly unsupported, as that would be tantamount to always
reexporting imports, which I think would be most unfriendly.  This may
cause issues with Undeclared bindings, that I didn't test for.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]