Changeset bbfe061 in tol
- Timestamp:
- Dec 22, 2011, 8:46:46 AM (15 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 6232734
- Parents:
- 0ea4b4d
- File:
-
- 1 edited
-
tol/btol/bgrammar/nameblock.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/bgrammar/nameblock.cpp
r0ea4b4d rbbfe061 1790 1790 1791 1791 1792 //-------------------------------------------------------------------- 1793 DeclareContensClass(BDat, BDatTemporary, BDatAddMember); 1794 DefExtOpr(1, BDatAddMember, "AddMember", 2, 2, "NameBlock Anything", 1795 "(NameBlock nb, Anything member)", 1796 I2("Adds a new member to a NameBlock. You cannot add an object " 1797 "withoput a valid and non previously used name inside the " 1798 "NameBlock.\n" 1799 "To avoid problems it is best to create the new member in a " 1800 "local environment:\n" 1801 " Real AddMember(nb,{Real _.newMember=2}); \n" 1802 "If used on an instance of a class, the new member will " 1803 "only affect that instance.\n" 1804 "Returns True if success. Otherwise, the consequences could " 1805 "be unpredictable, so it is not advisable to use this " 1806 "function except for expert users and for cause.", 1807 "Añade un nuevo miembro a un NameBlock. No se puede añadir " 1808 "un objeto sin un nombre válido y no usado previamente " 1809 "dentro del NameBlock.\n" 1810 "Para evitar problemas es mejor crear el nuevo miembro en " 1811 "un entorno local:\n" 1812 " Real AddMember(nb,{Real _.newMember=2}); \n" 1813 "Si se utiliza sobre una instancia de una clase el nuevo " 1814 "miembro sólo afectará a esa instancia.\n" 1815 "Devuelve True en caso de éxito. En caso contrario las " 1816 "consecuencias son imprevisibles, por lo que no se aconseja " 1817 "el uso de esta función salvo para usuarios expertos y con " 1818 "causa justificada. "), 1819 BOperClassify::System_); 1820 //-------------------------------------------------------------------- 1821 void BDatAddMember::CalcContens() 1822 //-------------------------------------------------------------------- 1823 { 1824 BNameBlock& nb = ((BUserNameBlock*)(Arg(1)))->Contens(); 1825 contens_ = nb.AddElement(Arg(2), true, false); 1826 } 1827 1828
Note: See TracChangeset
for help on using the changeset viewer.
