Skip to content
Discussion options

You must be logged in to vote

ELENA is a dynamic language so it is expected behavior. You can send any message to any object. But still it is possible to get warning in that case. To do it you have to use strong-typed variables / fields / parameters.

Here an example:

A;

public program()
{
   A a := new A();

   a.test()
}

The output is:

ELENA Command-line compiler 6.7.277 (C)2005-2025 by Aleksey Rakov, ELENA-LANG Org

Project: sandbox, Platform: Win_x86, Target type: STA Console
Cleaning up
Parsing sandbox.l
Compiling sandbox
sandbox.l(7:6): warning 407: Message 'test' is not handled by the object
.
saving sandbox

Successfully compiled
Linking..
Successfully linked

So there is a warning. But if your declare a weak…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant