From 603af0fe1bbca07bf51c1f25a337571c0867a9be Mon Sep 17 00:00:00 2001 From: Mohamed Ibrahim <mibrahim@mibrahim.net> Date: Sun, 27 Sep 2015 11:59:03 -0400 Subject: [PATCH] Update JavaKernelGuidelines.md --- doc/JavaKernelGuidelines.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/doc/JavaKernelGuidelines.md b/doc/JavaKernelGuidelines.md index 533872ef..89ab38dc 100644 --- a/doc/JavaKernelGuidelines.md +++ b/doc/JavaKernelGuidelines.md @@ -43,13 +43,14 @@ Some restrictions/guidelines may be removed or augmented in a future Aparapi rel * A variable cannot have its first assignment be the side effect of an expression evaluation or a method call. For example, the following will not be translated to run on the GPU. - int foo(int a) { - // . . . - } - public void run() { - int z; - foo(z = 3); - } + int foo(int a) { + // . . . + } + public void run() { + int z; + foo(z = 3); + } + * This should be regarded as an error which needs to be addressed, as a workaround, explicitly initialize variables (even to 0) when declared. -- GitLab