On Sun, 21 Mar 2010, Alexandr Okhotnikov wrote:
Hi
> Example!
>
> FUNC MAIN()
> DBCREATE( "aa.dbf", { { "DACC", "C", 10, 0 } } )
> use aa.dbf alias aa new
> DBAPPEND()
> aa->DACC := "hello"
> ? "aa->DACC :", aa->DACC
> ? 'aa->&("DACC") :', aa->&("DACC")
>
> RETURN 0
Have you tested it?
druzus:/tmp# hbrun tst.prg
aa->DACC : hello
aa->&("DACC") : hello
druzus:/tmp#
druzus:/tmp# harbour -n -gh tst.prg
Harbour 2.1.0dev (Rev. 14184)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Compiling 'tst.prg'...
Lines 11, Functions/Procedures 1
Generating Harbour Portable Object source output to 'tst.hrb'... Done.
druzus:/tmp# hbrun tst.hrb
aa->DACC : hello
aa->&("DACC") : hello
druzus:/tmp#
So it _confirms_ that you information about different in compiler when
HRB files are generated was completely wrong !!!
BTW technically such difference is impossible because compiler internally
generates _ONLY_ .HRB files which is native raw format for Harbour and
when -gc[N] switch is used then generated code is translated to .c code
as PCODE encapsulated in C functions (-gc[0-2]) or as C code directly
calling HVM functions (-gc3)
best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour