I read the manual page on accessors. From what I at first understand is that they are shorthand ways to type the get functions.
Now I'm far from the brightest light and not the best at text comprehension when reading things the first, second, thrid time.
So I read the accessor page again and again and it dawned on me they are likely also shorthand ways to type the set functions.
Overall if this is correct that is nice to know.
Just my wish is that the manual page or information on accessors be less shy and place a link on related manual pages.
GML:
mv = amap[? "keyword"]; <=> mv= ds_map_get(amap, "keyword);
lv= alist[| 5]; <=> lv= ds_list_find_value(alist, 5);
gv =agrid[# 3, 4]; <=> gv= ds_grid_get(agrid, 3, 4);
So I read the accessor page again and again and it dawned on me they are likely also shorthand ways to type the set functions.
GML:
amap[? "keyword"]=1; <=> mv= ds_map_set(amap, "keyword",1);
alist[| 5]=1; <=> ds_list_instert(alist, 5,1);
ag[B]rid[# 3, 4] =1; <=> ds_grid_set(agrid, 3, 4)=1;
Just my wish is that the manual page or information on accessors be less shy and place a link on related manual pages.