Die Suche ergab 19 Treffer

von tud_std
28. Nov 2018 02:03
Forum: Konzepte der Programmiersprachen
Thema: StackOverflowError in RCFLAEInterp
Antworten: 4
Zugriffe: 358

Re: StackOverflowError in RCFLAEInterp

Thank you for your reply. I got it now.
von tud_std
25. Nov 2018 23:53
Forum: Konzepte der Programmiersprachen
Thema: A feedback regarding the bonus grading
Antworten: 1
Zugriffe: 227

A feedback regarding the bonus grading

Dear TAs, I have just checked out the grading of my solution for the first assignment. I was expecting to achieve the full grade but unfortunately it was not the case. I lost a few points in the first task "Scala Warm-up". In my point of view, I abided by all rules mentioned in the given task and al...
von tud_std
25. Nov 2018 22:05
Forum: Konzepte der Programmiersprachen
Thema: StackOverflowError in RCFLAEInterp
Antworten: 4
Zugriffe: 358

Re: StackOverflowError in RCFLAEInterp

Thanks for your reply. I have edited the thread and added a url to the object RCFLAEInterp . Since recEnv was empty (i.e. recEnv before teta), the evaluation of recEnv.values after adding teta to recEnv, should in fact return teta._2 which is the value part of the pair : (key, value) = ('fact,Closur...
von tud_std
25. Nov 2018 21:02
Forum: Konzepte der Programmiersprachen
Thema: StackOverflowError in RCFLAEInterp
Antworten: 4
Zugriffe: 358

StackOverflowError in RCFLAEInterp

Hi everyone, In https://repository.st.informatik.tu-darmstadt.de/teaching/copl/2018/Interpreters/src/main/scala/de/tuda/stg/copl/recursion/RCFLAEInterp.scala the following assertion throws a java.lang.StackOverflowError : assert(interp( Rec('fact, Fun('n, If0('n, 1, Mult('n, App('fact, Sub('n, 1))))...
von tud_std
10. Nov 2018 17:54
Forum: Konzepte der Programmiersprachen
Thema: Typo in DeBrujinTest [test("conv ref in named expression")]
Antworten: 1
Zugriffe: 253

Typo in DeBrujinTest [test("conv ref in named expression")]

Dear Sirs, I have another question regarding Task1 please. I am wondering why the following expression : test("conv ref in named expression") { assertResult(LetDB(42, LetDB(RefDB(0), RefDB(0)))) { convert(Let('x, 42, Let('y, 'x, 'y))) } } evaluates to LetDB(42, LetDB(RefDB(0), RefDB(0))) and not Let...
von tud_std
10. Nov 2018 17:47
Forum: Konzepte der Programmiersprachen
Thema: Typo in DeBrujinTest [test("interp let let ref")]
Antworten: 2
Zugriffe: 332

Re: Typo in DeBrujinTest [test("interp let let ref")]

Many thanks for your prompt reply. I got your point.
von tud_std
10. Nov 2018 13:36
Forum: Konzepte der Programmiersprachen
Thema: Typo in DeBrujinTest [test("interp let let ref")]
Antworten: 2
Zugriffe: 332

Typo in DeBrujinTest [test("interp let let ref")]

Dear Sirs, If I am not mistaken I think there is a typo in DeBrujinTest : The assertion of the following test should be 2 and not 1 as what it is stated in the project template : test("interp let let ref") { assertResult(1) { interp(LetDB(1, LetDB(2, RefDB(1)))) } } I am looking forward to your feed...
von tud_std
27. Nov 2017 13:07
Forum: Software Engineering - Design and Construction
Thema: LSP and self-consistency
Antworten: 2
Zugriffe: 322

Re: LSP and self-consistency

Many thanks for the feed-back.
von tud_std
25. Nov 2017 00:20
Forum: Software Engineering - Design and Construction
Thema: LSP and self-consistency
Antworten: 2
Zugriffe: 322

LSP and self-consistency

Hi, 1) In the bottom of slide 7 of LSP lecture, it is written This model is self-consistent . What self-consistency means in this context please? 2) In the LSP paper of Robert C. Martin, page 6, he wrote : "The LSP makes clear that in OOD the ISA relationship pertains to behavior. Not intrinsic priv...
von tud_std
23. Nov 2017 18:14
Forum: Software Engineering - Design and Construction
Thema: Equals method and LSP violation
Antworten: 2
Zugriffe: 556

Equals method and LSP violation

Hi, In "Effective Java 2nd edition", page 40, It says that the getClass-based equals method violates Liskov Substitution Principle. Following is the super-type Point and subtype CounterPoint source code : public class Point { private final int x; private final int y; public Point(int x, int y) { thi...
von tud_std
19. Nov 2017 19:39
Forum: Software Engineering - Design and Construction
Thema: Immobile classes vs tight coupled classes
Antworten: 2
Zugriffe: 323

Immobile classes vs tight coupled classes

Hi,
What difference there is please between Mobile/Immobile classes and Loosely coupled/Tight coupled classes ?
von tud_std
14. Nov 2017 12:26
Forum: Software Engineering - Design and Construction
Thema: Exercises' solutions
Antworten: 1
Zugriffe: 245

Exercises' solutions

Hi,
Will be there please any uploads of the exercises' solutions like previous semesters?

Regards.
von tud_std
12. Nov 2017 16:02
Forum: Software Engineering - Design and Construction
Thema: Ex02 Task2.1 Type mismatch error
Antworten: 1
Zugriffe: 307

Ex02 Task2.1 Type mismatch error

Hi, I have a question with regard to Context.get() method. I am wondering how does the Java compiler cast implicitly the return type of the Supplier call value.get() whose return type is of generic type T to Object type. In fact the signature of cache.computeIfAbsent() method is given such as : Obje...

Zur erweiterten Suche