This has always been how I fixed J objects in my head. Just replace the dot with two underscores. :P
It would have been "nice" to get the dots but I'm happy with what is currently implemented. In my day job, were content in letting J do the heavy lifting ... like this afternoon, the team has been discussing on a clever way of doing vertical MRP and everyone (including me of course) in the meeting are Microsoft peons. Suffice to say, when discussing the details, it was understood by everyone that the actual computation is to be written in J (by me) and everything else (API, classes, interfaces, GUI, database, etc) were to be written in C#/vb.net/ASPX/T-SQL/ABAP and the .NET framework. Hahaha. The general design on the whiteboard actually have a box which says "Compute MRP (J/Alex)" and everything else is just how to get the data to and from that box. :D As I've always said, I'm an Economics grad and my first programming language is actually COBOL with CICS ... I've only know APL when it was demo'ed to me for less than 15 minutes in 1998 (I think) and was introduced to J by year 2000. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of bill lam Sent: Wednesday, May 27, 2009 6:19 PM To: [email protected] Subject: Re: [Jchat] No More APL On Tue, 26 May 2009, Morten Kromberg wrote: > The "dot" acts in a way which is similar to conventional object > oriented languages, but whenever (the evaluation of) one of the > segments returns an array, you essentially get an outer product and > a nested result which matches the structure of the arrays in the > dotted expression. Or you can go for a single number: > > cities.Sheets[⊂'DK'].Range[⊂'B1'].Value2 5.4 > cities.Sheets[⊂'DK'].Range[⊂'B1'].Value2←5.5 > > ... Retrieve (and set) the cell in B1 in the sheet named 'DK'. I guess this is idispatch popularised by visual basic. Similar could be done in J without using the dot syntax, such as, get__cities ('Sheets' ; 'DK') ; ('Range' ; 'B1' ) ; 'Value2' 5.5 set__cities ('Sheets' ; 'DK') ; ('Range' ; 'B1' ) ; 'Value2' however no one yet willing to paid money for it. Cannot drink it. ;-) -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 唐詩096 宋之問 題大庾嶺北驛 陽月南飛雁 傳聞至此回 我行殊未已 何日復歸來 江靜潮初落 林昏瘴不開 明朝望鄉處 應見隴頭梅 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
