Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  todo_list_showcase_definitions.g   Sprache: unbekannt

 
Spracherkennung für: .g vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

LoadPackage( "ToolsForHomalg" );


DeclareCategory( "IsToDoListTestObject",
                 IsObject );

DeclareRepresentation( "IsToDoListTestObjectRep",
                       IsToDoListTestObject and IsAttributeStoringRep,
                       [ ] );

BindGlobal( "TheFamilyOfToDoListTestObjects",
        NewFamily( "TheFamilyOfToDoListTestObjects" ) );

BindGlobal( "TheTypeToDoListTestObject",
        NewType( TheFamilyOfToDoListTestObjects,
                IsToDoListTestObjectRep ) );

DeclareOperation( "ToDoListTestObject",
                  [ IsString ] );

DeclareOperation( "ToDoListTestObject",
                  [ IsString, IsToDoListTestObject ] );

DeclareProperty( "IsTypeA",
                 IsToDoListTestObject );

DeclareProperty( "IsTypeB",
                 IsToDoListTestObject );

##
InstallMethod( ToDoListTestObject,
               "without arguments",
               [ IsString ],
               
  function( nam )
    local obj;
    
    obj := rec( name := nam );
    
    ObjectifyWithAttributes( obj, TheTypeToDoListTestObject );
    
    return obj;
    
end );

##
InstallMethod( ToDoListTestObject,
               "without arguments",
               [ IsString, IsToDoListTestObject ],
               
  function( nam, parent )
    local obj;
    
    obj := rec( name := nam );
    
    ObjectifyWithAttributes( obj, TheTypeToDoListTestObject );
    
    AddToToDoList( ToDoListEntry( [ [ parent, "IsTypeA", true ] ], obj, "IsTypeA", true ) );
    
    return obj;
    
end );

##
InstallMethod( ViewObj,
               "for test obj",
               [ IsToDoListTestObject ],
               
  function( obj )
    
    Print( Concatenation( "<", obj!.name, ">" ) );
    
end );

##
InstallMethod( Display,
               "for test obj",
               [ IsToDoListTestObject ],
               
  function( obj )
    
    Print( Concatenation( obj!.name, ".\n" ) );
    
end );

##
InstallMethod( PrintObj,
               "for test obj",
               [ IsToDoListTestObject ],
               
  function( obj )
    
    Print( obj!.name );
    
end );

##
InstallMethod( \=,
               "for test obj",
               [ IsToDoListTestObject, IsToDoListTestObject ],
               
  IsIdenticalObj
  
);

[Dauer der Verarbeitung: 0.21 Sekunden, vorverarbeitet 2026-06-13]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik