Verfasst: Mittwoch 29. November 2006, 08:32
Klingt voellig logisch. Ich kann mir aber im Moment gar nicht vorstellen, wie eine schwach typisierte Sprache aussehen soll?
Seit 2002 Diskussionen rund um die Programmiersprache Python
https://www.python-forum.de/
Wie PHP oder Visual Basic. Das sind eben schwach typisierte Sprachen.Rebecca hat geschrieben:Ich kann mir aber im Moment gar nicht vorstellen, wie eine schwach typisierte Sprache aussehen soll?
Wie wär's mit C.Rebecca hat geschrieben:Klingt voellig logisch. Ich kann mir aber im Moment gar nicht vorstellen, wie eine schwach typisierte Sprache aussehen soll?
Code: Alles auswählen
class TransferableGenericDataObject_Def(TypeDefinition):
#complexType/complexContent extension
schema = "http://schema.eim.cas.de"
type = (schema, "TransferableGenericDataObject")
def __init__(self, pname, ofwhat=(), extend=False, restrict=False, attributes=None, **kw):
ns = ns0.TransferableGenericDataObject_Def.schema
TClist = [GTD("http://schema.eim.cas.de","Field",lazy=False)(pname=(ns,"fields"), aname="_fields", minOccurs=0, maxOccurs="unbounded", nillable=False, typed=False, encoded=kw.get("encoded"))]
attributes = self.attribute_typecode_dict = attributes or {}
if extend: TClist += ofwhat
if restrict: TClist = ofwhat
if ns0.DataObject_Def not in ns0.TransferableGenericDataObject_Def.__bases__:
bases = list(ns0.TransferableGenericDataObject_Def.__bases__)
bases.insert(0, ns0.DataObject_Def)
ns0.TransferableGenericDataObject_Def.__bases__ = tuple(bases)
ns0.DataObject_Def.__init__(self, pname, ofwhat=TClist, extend=True, attributes=attributes, **kw)
class DataObject_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
schema = "http://schema.eim.cas.de"
type = (schema, "DataObject")
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
ns = ns0.DataObject_Def.schema
TClist = [ZSI.TC.HexBinaryString(pname=(ns,"id"), aname="_id", minOccurs=1, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), GTD("http://schema.eim.cas.de","AlphaString",lazy=False)(pname=(ns,"objectType"), aname="_objectType", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
self.attribute_typecode_dict = attributes or {}
if extend: TClist += ofwhat
if restrict: TClist = ofwhat
ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
class Holder:
typecode = self
def __init__(self):
# pyclass
self._id = None
self._objectType = None
return
Holder.__name__ = "DataObject_Holder"
self.pyclass = Holder