interesting, important discussion https://github.com/modula3/cm3/issues/42
i think the requestor is right. may be i need tot initialize the array with other values, why spend time to initialize it to zeros?
#programming #programming_languages #modula #modula-3 #design
one better than the other.
#book #books #programming #photo #modula #modula-2 #modula-3 #ada #components #algorithms
@{Antranig Vartanian ; antranigv@spyurk.am} told me that he met Paul Vixie, author of vixie-cron. (: Here, in Yerevan. At some conference. And Paul said that he loves Modula-3 and Wirthian languages. And he was writing in Modula-3 and he has an article about it. http://www.redbarn.org/node/20
#Modula-3 #Vixie #programming_languages #programming #Yerevan
very interesting discussion for me https://github.com/modula3/cm3/issues/12
What do you think about implementing properties in Objects?
OBJECT
...
PROPERTIES
intValue : INTEGER READ GetIntValue() WRITE SetIntValue();
I wouldn’t mind adding some things like this as long as they are very obviously simple syntactic sugar for existing operations. This looks like something like that…
shouldn’t it be, though
PROPERTIES
intValue : INTEGER
READ := GetIntValue() : INTEGER
WRITE := SetIntValue(to : INTEGER);
to more closely match the syntax for methods.
Also it won’t work on RECORDs, which is a bit odd.
I suppose it follows the existing property (which I would not want to break) that you can almost always change a T = REF RECORD … to T = OBJECT … without breaking anything, but not the other way around.
#modula #programming #programming_languages #modula-3 #cm3 #modula3 #compiler
the surest way to improve programming productivity is so obvious many programmers miss it. simply write less code!
#modula-3 #harbison #programming #quote #book