-----Messaggio Originale----- Da: "Przemyslaw Czerpak" <dru...@acn.waw.pl> A: "Enrico Maria Giordano" <e.m.giord...@emagsoftware.it>; "Xharbour-Developers List" <xharbour-developers@lists.sourceforge.net> Data invio: martedì 2 ottobre 2012 0.19 Oggetto: Re: [xHarbour-developers] Spaces around -> operator
> > WIth this new sample > > Procedure Main() > > MEMVAR->Doug := "right" > > MEMVAR->Enrico := "wrong" > > SET PRINTER TO &(MEMVAR->Doug) > > SET PRINTER TO ( &(MEMVAR -> Enrico) ) > > Return > > I get > > Error BASE/1003 Variable does not exist: WRONG > > What am I missing? > > Don't be sorry that you haven't pay attention for Clipper syntax > but start to invest some time in it ;-) -p option and .ppo files > can greatly help you. > The basic functionality of & is macro operator. If it's not "eaten" > by some PP rules then it's passed to compiler. If you do not want to > eval the expression in M->Doug then you should not use it at all, > i.e.: > SET PRINTER TO ( MEMVAR -> Doug ) That's what I was missing. I repeat: the sample is not mine. I suppose your comments should be directed to Douglas not to me. Anyway, reporting just the last line would have been enough, if you really were willing to help, without the rest of the unneeded comments. You really think that I don't know the macro and the extended expressions syntax? I used them extensively for decades. Please avoid to presume ignorance in other people. > BTW many times in last years you reported problems with code using > this construction: > > PROC MAIN() > MEMVAR V > PRIVATE V := "DATE()" > ? &V > RETURN > > Few days ago I've seen that you again reported that when you trie > to compile speedtst.prg you have errors like: > Error E0003 Duplicate variable declaration 'V' > This problem is created by you: you added to some of your build > scripts or envvars Harbour switch: -a I need it for my code. But now I remove it in my test directory, thank you. EMG -- EMAG Software Homepage: http://www.emagsoftware.it The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum The Best of Spectrum Games: http://www.emagsoftware.it/tbosg The EMG Music page: http://www.emagsoftware.it/emgmusic ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ xHarbour-developers mailing list xHarbour-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xharbour-developers