On Tue, 26 May 2009, Szak�ts Viktor wrote:

Hi,

> Right on the second page, I see syntactic sugar: a.x for a[ "x" ],
> I'm not sure about the speed compared to a[ _NUM_INDEX ], but
> it surely gives something I was missing a few days ago.

You have such functionality from beginning though it's not enabled in
default core builds. You have to compile Harbour with HB_HASH_MSG_ITEMS
macro or use XHB library. The only one difference is that [x]Harbour
uses : not . as send operator so it will look like a:x not a.x
Using . as send operator breaks the syntax:
   a.and.b
it can be interpreted as:
   a .and. b
or:
   a:and:b
what for hashes with OOP interface means:
   a["AND"]["B"] => a["AND","B"]
anyhow if you prefer . like in VFP then you can use:
   #xtranslate .<!msg!> => :<msg>

best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to