Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with code/dynamic using multiple trails #131

Open
JoaoSamp opened this issue Aug 20, 2018 · 0 comments
Open

Error with code/dynamic using multiple trails #131

JoaoSamp opened this issue Aug 20, 2018 · 0 comments

Comments

@JoaoSamp
Copy link

error with the following code

#include "c.ceu"

input none A;
input none B;

data IObj;

data IObj.Rectangle with
	var int height;
end

code/await/dynamic Obj (var&/dynamic IObj obj ) -> none
do
	par/or do with with with with with with with with end
	//_ceu_assert(0, "erro");
end

code/await/dynamic Obj (var&/dynamic IObj.Rectangle obj ) -> none
do
	do finalize with _printf("xxx\n"); end
	par/or do
		every A do
			_printf("%d\n", 1);
		end
	with
		every B do
			_printf("%d\n", 2);
		end
	end
end

spawn do
	await async do
		emit A;
		emit B;
	end
	_printf("ok\n");
end

var IObj.Rectangle rct = val IObj.Rectangle(20);
await/dynamic Obj (&rct);

await FOREVER;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant