On Sun, Mar 14, 2010 at 1:19 AM, Pritpal Bedi <bediprit...@hotmail.com> wrote:

> You always remember a name for longer periods.

Tomorrow I will ask my co-workers to show me this feature... actually
I don't know if it is a built-in feature or a plugin... I will tell
you how it really works in VS to populate the code snippet list.

I see this code snippet repository something like a sort of clipboard
on steroids... something that should be really quick and easy to
use...

so don't ask a name for the code, just show the first non-blank line
and, optionally, give the possibility to assign a name to it...

Of course, code snippet repository must be saved between editing sessions....

>
>
> This is quiet easy if it is only to see if it compiles.

I keep thinking about it and I believe that harbour is a more
difficult code to parse real-time... not impossible, but difficult..

In java (I know very little of Java) a class must be contained in one
source file and they may call other classes that are in the same
package. In order to use classes from other packages you have to
"import" them. In Harbour you can have several classes in one source
code and there is no "package" concept...

Java is a typed language and variables must be declared before use, so
you if you have
static Object o;
when you type "o." in the editor the intellisense can show all the
proper method...
In harbour you may have valid code that is
o:method and o is never ever declared in the source file.... it may be
a public/private from some other place !
In C#4 ms  introduced the dynamic data type, a type-less variable type
and infact intellisense can't work on them !



> This is quiet easy if it is only to see if it compiles.
> This is what you are asking for ?

It may be a start....
>
> 1. How to handle
>      IF abc == 212
>      DO CASE
>      DO WHILE abc < 100
>   etc cases. Will these compile?

If you compile one line they should compile AS ONE LINE, they will not
in a file -level

>   Also multiline comments. I mean how to determine if
>   a line is macro compiled properly.
Macro is a .big. problem

> Above will not compile, not tested,
>   but are valid statements. How Eclipse handles them ?

As I said they will compile as single lines, but when the compiler
reaches the EOF it will say that there is missing ENDIF, ENDCASE,
ENDDO...
Another point is that preprocessor mangle the source code and DO WHILE
-> while; ENDIF,ENDDO, ENDCASE -> end and so on... CLASS definition is
completely transformed in harbour code...
So, it's a real complicated matter...



It's not impossible but very difficult to achieve....
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to