alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Scala example source code file (tailcalls.check)

This example Scala source code file (tailcalls.check) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Scala tags/keywords

class, final, final, o, object, object, sealed, sealed, subclass, subclass

The Scala tailcalls.check source code

test Object   .f was successful
test Final    .f was successful
test Class    .f raised exception java.lang.StackOverflowError
test SubClass .f was successful
test Sealed   .f raised exception java.lang.StackOverflowError
test SubSealed.f was successful

test O      .f was successful
test c      .f was successful
test O.O    .f was successful
test O.c    .f was successful
test c.O    .f was successful
test c.c    .f was successful
test O.O.O  .f was successful
test O.O.c  .f was successful
test O.c.O  .f was successful
test O.c.c  .f was successful
test c.O.O  .f was successful
test c.O.c  .f was successful
test c.c.O  .f was successful
test c.c.c  .f was successful
test O.O.O.O.f was successful
test O.O.O.c.f was successful
test O.O.c.O.f was successful
test O.O.c.c.f was successful
test O.c.O.O.f was successful
test O.c.O.c.f was successful
test O.c.c.O.f was successful
test O.c.c.c.f was successful
test c.O.O.O.f was successful
test c.O.O.c.f was successful
test c.O.c.O.f was successful
test c.O.c.c.f was successful
test c.c.O.O.f was successful
test c.c.O.c.f was successful
test c.c.c.O.f was successful
test c.c.c.c.f was successful

test TailCall.f1 was successful
test TailCall.f2 was successful
test TailCall.f3 was successful
test TailCall.g1 was successful
test TailCall.g2 was successful
test TailCall.g3 was successful
test TailCall.h1 was successful

test NonTailCall.f1 0 1 2 was successful
test NonTailCall.f2 was successful

test TailCall.b1 was successful
test TailCall.b2 was successful
test FancyTailCalls.tcTryLocal was successful
test FancyTailCalls.differentInstance was successful
test PolyObject.tramp was successful

Other Scala examples (source code examples)

Here is a short list of links related to this Scala tailcalls.check source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.