Re: [Oorexx-devel] Problem Using EXPOSE

2013-12-17 Thread Sanford Geiger
Ok, but NOT when you are trying to easily convert from IBM Rexx to ooRexx or from PL/I to ooRexx. From: Rick McGuire [mailto:object.r...@gmail.com] Sent: Tuesday, December 17, 2013 10:53 AM To: Open Object Rexx Developer Mailing List Subject: Re: [Oorexx-devel] Problem Using EXPOSE All the

Re: [Oorexx-devel] Problem Using EXPOSE

2013-12-17 Thread Rick McGuire
xx. > > Like this: > >Test1: procedure, > > Expose a b c > > > > > > *From:* Mark Miesfeld [mailto:miesf...@gmail.com] > *Sent:* Tuesday, December 17, 2013 10:11 AM > > *To:* Open Object Rexx Developer Mailing List > *Subject:* Re: [Oorexx-dev

Re: [Oorexx-devel] Problem Using EXPOSE

2013-12-17 Thread Sanford Geiger
List Subject: Re: [Oorexx-devel] Problem Using EXPOSE On Tue, Dec 17, 2013 at 6:39 AM, Sanford Geiger wrote: Ok, but this is NOT how IBM Rexx works. Is there a way to make all variables in a program be made available to any routine or method? You could stick the variables in the .local directory

Re: [Oorexx-devel] Problem Using EXPOSE

2013-12-17 Thread Mark Miesfeld
On Tue, Dec 17, 2013 at 6:39 AM, Sanford Geiger wrote: > Ok, but this is NOT how IBM Rexx works. Is there a way to make all > variables in a program be made available to any routine or method? > You could stick the variables in the .local directory. This is similar to global variables and all th

Re: [Oorexx-devel] Problem Using EXPOSE

2013-12-17 Thread Rick McGuire
om] > *Sent:* Tuesday, December 17, 2013 9:34 AM > *To:* Open Object Rexx Developer Mailing List > *Subject:* Re: [Oorexx-devel] Problem Using EXPOSE > > > > Sorry, accidentally hit enter while in gmail, so the reply was sent early. > > > > myclass = .tclass~new > >

Re: [Oorexx-devel] Problem Using EXPOSE

2013-12-17 Thread Sanford Geiger
-devel] Problem Using EXPOSE Sorry, accidentally hit enter while in gmail, so the reply was sent early. myclass = .tclass~new myclass~testmethod2 fld3=fld1||fld2 say fld3 myclass~testmethod2 return ::class tclass ::method testmethod1 expose fld1 fld2 fld1="abcdef" fld2=&qu

Re: [Oorexx-devel] Problem Using EXPOSE

2013-12-17 Thread Rick McGuire
Sorry, accidentally hit enter while in gmail, so the reply was sent early. myclass = .tclass~new > > myclass~testmethod2 > > fld3=fld1||fld2 > > say fld3 > myclass~testmethod2 > return > > ::class tclass > > ::method testmethod1 > > expose fld1 fld2 > > fld1="abcdef" > > fld2="123456789

Re: [Oorexx-devel] Problem Using EXPOSE

2013-12-17 Thread Rick McGuire
Wow, there is so much wrong with this example that I don't even know where to start. Expose exposes instance variables of an object, it does NOT give access to the caller's variables. Methods of an object instance share access to those variables by using expose. Here is a simple example of using

[Oorexx-devel] Problem Using EXPOSE

2013-12-17 Thread Sanford Geiger
I am having a problem getting EXPOSE to work. The following is a test a ran: Code: /** ooRexx test of expose **/ fld1="123456" fld2=copies("C",20) myclass = .tclass~new myclass~testmethod fld3=fld1||fld2 say fld3 return ::class tclass ::method testmethod public expose fld1 fld2