Suppose I have a Type type Foo a b end
f = Foo(1,2) f.a = 1 f.b = 2 how do I test whether f.a is defined I do this isdefined(f, 1) but isdefined(f, 'a') does not work another question how do i undefine f.a such that isdefined(f,1) now returns false
Suppose I have a Type type Foo a b end
f = Foo(1,2) f.a = 1 f.b = 2 how do I test whether f.a is defined I do this isdefined(f, 1) but isdefined(f, 'a') does not work another question how do i undefine f.a such that isdefined(f,1) now returns false