Home Demos Forum Research Guide
Viewing topic list in forum 'general'
back to forum list
You can use [code][/code] blocks to render source code.

Language Specification
Hi! I found a lot of resources about the language, but I'm missing some syntax specification, or grammar. This would really help to develop IDEs. Is there something currently available?
by rainerschuster on 2016-12-08 07:07:14 (3 replies)
Cloning object
Hi I have been trying to clone an object using the documented method like this : x = clone y but i get the message Objects cannot be cloned in this way, use the objects clone method. How do i do this? I have tried y.clone() and also clone(y) but both cause compile ...
by philbeattie on 2016-02-17 11:20:36 (2 replies)
File Input
I will like to append content to a file. How can i achieve this. Current library only allows one to overwrite content of a file.
by enesi on 2015-07-06 13:40:19 (1 reply)
Method Overriding and Method Overloading
Does Dana support method overriding and method overloading just as OOP languages like Java does?
by enesi on 2015-06-17 17:58:07 (1 reply)
Interface Inheritance
Is it possible for and interface to extend another interface?
by enesi on 2015-06-10 13:39:29 (2 replies)
Data Relational Comparison
Is there any way i can compare two data types using relational operators like <, or >?
by enesi on 2015-06-09 12:43:32 (3 replies)
Data Inheritance
Assuming i have the following data type declarations: data Abc{ copy char name[]; } data Def extends Abc{ copy int age; copy char gender; } Which one of these is correct? A) Def mybio = new Def("Umar Enesi Ibrahim", 27, "M");...
by enesi on 2015-06-09 12:28:32 (1 reply)
Extending the scope data type definition
I have seen examples and codes in the central source tree where new data types are declared alongside interface or component declarations. These data types are only avaliable to other components that provides or requires the interface. Is it possible to declare datatype in suc...
by enesi on 2015-06-02 13:44:06 (1 reply)
deadlock situation
how can I create a Deadlock situation that would require the use of a mutex.
by adetolaraphael on 2015-05-29 14:13:36 (1 reply)
Index out of bounds exception
Hi, I have the following situation: Metric m = new Metric(); metrics = new Metric[](metrics, new Metric()); metrics[metrics.arrayLength-1] = m; What I'm trying to do is to add items to an array in a dynamic way. So I would add a new Metric object (a blank ...
by roberto on 2015-03-24 16:54:49 (4 replies)
Thread sleep
How do I make a thread sleep. Couldn't find it in the programming guide. Thanks! - Ralph
by adetolaraphael on 2015-03-11 12:34:46 (1 reply)
Function overload and variadic functions
Is it possible to create functions with the same name with different params in Dana? What about creating a function with unknown number of params? I couldn't find any of that in the Programming Guide. Thanks! - Roberto
by roberto on 2015-03-06 03:20:24 (2 replies)
JSONParser and ObjectReader
JSONParser and ObjectReader are very useful components that together allow us to extract important information from a DANA object file. This post is just a formal request so that these two components get added oficially to Dana's CST in the next release. If that is possible. ...
by roberto on 2015-03-04 06:03:21 (2 replies)
Null vs IDC
I assigned null to an IDC variable. So when I try to compile it, it gives me "Null vs. IDC" as an output. When I run the code it gives me a null pointer exception, so I figured I can not assign null to an IDC variable. I was just wondering why.
by roberto on 2015-03-02 13:59:15 (2 replies)
String Concatenation
I got the following code: out.println("\n[DEBUG] $(roots[rootPointer].name) - $(intUtil.intToString(rootPointer)) - $(intUtil.intToString(numComp)) loading components..."); That is a huge line that I would like to break in the middle, for cosmetic reasons (make the c...
by roberto on 2015-02-25 09:54:20 (1 reply)
© Francis Research Ltd. 2017