OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-atomspace commits / f619e5c

Explain some of the confusion
f619e5c2742aec6c70099a45f4a4eccf5e9fe93d
by Linas Vepštas <linasvepstas@gmail.com> · 2026-01-21T05:01:10.000Z

Changed files (1) +10 -4

opencog/atomspace/AtomSpace.cc +10 -4
……@@ -128,6 +128,11 @@ void AtomSpace::install(void)
128128 return;
129129 }
130130
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.
131136 for (const Handle& base : _outgoing)
132137 {
133138 // Easy. Just copy cast.
……@@ -165,10 +170,11 @@ void AtomSpace::install(void)
165170 base->to_string().c_str());
166171 }
167172
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);
172178}
173179
174180// ====================================================================