Re: NASL2 wish list
Michel Arboi <[email protected]>
| Newsgroups | gmane.comp.security.nessus.devel |
|---|---|
| Organization | Compilo ergo sum |
| Message-ID | <[email protected]> |
H D Moore <[email protected]> writes: > * a reference type would allow functions to return array references, so > user created functions could have multiple return values A function should be able to return an array as soon as I remove the free() which should not be here... > * a dereferencing and reference test function to see if a variable > contains a refernece and what type it is Something like this? --------------------------------- v[0] = "UN"; v[1] = 'DEUX'; x = 1; z= 3; display("x = ", typeof(x), "\ny = ", typeof(y), "\nv = ", typeof(v), "\nv0= ", typeof(v[0]), "\nv1= ", typeof(v[1]), "\n"); --------------------------------- $ nasl /tmp/d.nasl x = int y = undef v = array v0= string v1= data $ ---------------------------------