<i>msgcat with oo: error "self may only be called from inside a method"</i> status still Open with 3 other changes
by
.
D 2024-07-18T08:15:42.206
J icomment The\sshortcut\sof\slooking\sat\sthe\snamespace\sname\sbefore\sdoing\sthe\sresolution\sis\s*technically*\sunsafe.\sThere's\san\sobscure\s(but\sdocumented!)\sfeature\sto\screate\sobjects\swith\snamespace\snames\sunder\sthe\scontrol\sof\sthe\suser:\sthe\s`createWithNamespace`\smethod,\swhich\sis\snot\snormally\sexported.\s(IIRC,\sNathan\swanted\sit\sand\sI\sdidn't\smind\shaving\sit;\sTclOO\sworks\swith\snamespace\shandles\smore\sthan\snamespace\snames.)\r\n\r\nIt's\sa\sshame\sthat\sisn't\sin\sC\sas\sthere's\sa\smuch\scheaper\scheck\sif\syou\scan\ssee\sthe\snamespace\simplementation\sstructure\s(literally\scheck\sa\sflag\sbit).\r\n\r\nAnyway,\syour\sbranch\slooks\sgood\sto\sgo\sto\sme\sas\slong\sas\syou\sbear\sin\smind\sthat's\sa\sformal\sincorrectness;\sI\svery\smuch\sdoubt\sthat\smuch\suser\scode\swill\sever\shit\sthat\sparticular\swrinkle.\sRemoving\sthe\sshortcut\s(and\smeasuring\swhether\sit\sactually\ssaved\sanything)\swould\sfix\sthat.
J login dkf
J mimetype text/x-markdown
K 91b3a5bb14e6e8ae1d1c5349af12e08879ea152d
U dkf
Z 6751f9ba5140d7ea341b76c48a864fba