variable existence checking
A.V.Kuznetsov
kuzn at umps.mephi.ru
Tue May 29 18:08:49 CEST 2007
Hi,
> * A.V.Kuznetsov wrote (2007-05-29 13:27):
> >Is it possible to extend macro language by checking of a (global?)
> >variable existence? I think, such a checking is very helpful, since
> >macro execution is broken when undefined variable is called.
>
> I (with TK's help) did something similar for my Patch Collection:
> https://sourceforge.net/tracker/index.php?func=detail&aid=1058246&group_id=11005&atid=311005
>
> From the documentation:
> **typeof( value )**
> Returns a string indicating the type of a macro value. The value can be
> any NEdit macro language value except for the return value of functions
> without a return value. Examples:
> typeof(2) # -> "INTEGER"
> typeof($empty_array) # -> "ARRAY"
> typeof(get_range(10, 20)) # -> "STRING"
> typeof(myArray["doesnotexist"]) # -> "UNDEFINED"
>
>
> >I.e. new logical operator !! "existence" can be defined.
>
> I don't think that would be necessary.
Indeed, your nice solution is more general, I like it.
But question is still opened.
There are many NEdit's patches but theirs status is undefined.
Unfortunately TK Soh has leaved the team,
Patch Collection is quite unstable and does not work for me,
I tried it several times.
Alexey
More information about the Discuss
mailing list