On Tue, Feb 12, 2013 at 3:11 PM, Rick McGuire <object.r...@gmail.com> wrote:
>
>
> Change your test to this
>>
>> a=.array~new
>> a~append("::routine speak public")
>> a~append("say 'hi this is me'")
>> a~append("say 'bye'")
>> a~append("return 0")
>> p=.package~new("package1",a)
>> r = speak()
>>
>> and try it.
>>
>> Although I just did and it didn't work as I expected. But, it is more
>> like what I think should work.
>>
>
>
> Mark, speak() did not work because creating the package does not
> automatically add the package to the current context. You'd need to add
>
> .context~package~addPackage(p)
>
> to add it to the namespace.
>
>
Thanks, that makes sense. I was just trying to use loadPackage(
'package1'). Which doesn't work either because the arg is a file name, not
the name given in new().
--
Makr Miesfeld
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users