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

բնօրինակ սփիւռքում(եւ մեկնաբանութիւննե՞ր)

I have managed to port Wirth’s PICL language compiler (which generates code for PIC16F84) to GNU/Linux(used voc to compile it), I mean, it’s possible to run it, compile sample programs with it on my desktop. Now need to make some more improvements and write a manual so that people can use it.

#pic #pic16f84 #embedded #embedded_programming #programming #screenshot #compiler #wirth #picl #programming_languages #hardware #hardware_programming #oberon

բնօրինակ սփիւռքում(եւ մեկնաբանութիւննե՞ր)

very interesting resource for those who are interested in compilers: http://turbopascal.org/turbo-pascal-internals

#internals #compiler #source #code #programming #compilers #pascal #turbo_pascal #book #analysis #reverse_engineering #research

բնօրինակ սփիւռքում(եւ մեկնաբանութիւննե՞ր)

This page refers to some technologies as “computer science fiction”. Among them to Oberon. This brings another meaning to Vishap oberon compiler. Oberon is like aliens, ghosts. And Vishaps.

#computer_science_fiction #fiction #cs #computer_science #vishap #aliens #ghosts #vishaps #dragon #dragons #compiler #oberon #oberon-2 #compilers #technologies

բնօրինակ սփիւռքում(եւ մեկնաբանութիւննե՞ր)