slang-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] Advice on "complex" data type integration


Robert Lipe <robertlipe@xxxxxxx> wrote:
>Another approach (which doesn't thrill me) that came to me after
>struggling with this for a while was to just bring out acessors with
>arguments of strings.
>
>	linkylink = gb_get_wpt(wpt, "url");
>	gb_set_wpt(wpt, "url", "http://"; + linkylink);

It is fairly easy to construct an interface that permits the above to
be written:

   wpt = gb_new_wpt ();
   wpt.url = "http://"; + wpt.url;

and have the wpt object to be automatically freed when it goes out of
scope or reassigned.  To do the above, you would use the sput and sget
class methods.  Is this something more akin to what you are looking
for?

Thanks,
--John


[2005 date index] [2005 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]