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

Reply via email to