| … | … | @@ -128,6 +128,11 @@ void AtomSpace::install(void) |
| 128 | 128 | return; |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | // _environ will be empty, if we came through the |
| 132 | // AtomSpace::AtomSpace(const HandleSeq&) ctor above. |
| 133 | // We have to delay setup of _environ until after the |
| 134 | // parent _atom_space is set, si that the exec below |
| 135 | // works. |
| 131 | 136 | for (const Handle& base : _outgoing) |
| 132 | 137 | { |
| 133 | 138 | // Easy. Just copy cast. |
| … | … | @@ -165,10 +170,11 @@ void AtomSpace::install(void) |
| 165 | 170 | base->to_string().c_str()); |
| 166 | 171 | } |
| 167 | 172 | |
| 168 | | // XXX FIXME: Frame::install loops over _outgoing but maybe it |
| 169 | | // should be looping over _environ, instead? Maybe we should copy |
| 170 | | // _environ to _outgoing? |
| 171 | | Frame::install(); |
| 173 | // It is the _environ and not the _outgoing that has to get it's |
| 174 | // incoming set set up. |
| 175 | Handle llc(get_handle()); |
| 176 | for (const AtomSpacePtr& has : _environ) |
| 177 | has->insert_atom(llc); |
| 172 | 178 | } |
| 173 | 179 | |
| 174 | 180 | // ==================================================================== |