English
Bugs and vermeintliche

bow: Variablenoptimierung quasi useless

 

Jörg
Sellmeyer
the little code runs in the Interpreter How expects through. If I it try, To kompilieren, freeze the Compiler simply one and crashes.
If I against it Var X& use, functions it!
CompileMarkSeparation
Class EinTest = EinTest@,
hParent&,
br%,
x%

Proc EinTest.EinTest

    Parameters cc%
    .hParent& = %hwnd
    .x% = cc%
    .br% = Width(.hParent&) - 2 * .x%

EndProc

Cls
Declare aa#
AA# = New(EinTest,2)

With AA#

    Var x% = .br%  das knallt
    Var X& = .br%  das funktioniert

EndWith

print x%
waitinput
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
09/05/08  
 




Jörg
Sellmeyer
Interressanterweise goes it, if The Compilierung via XPSE results. If I the code then but again certain lines load, knallt it again.
might the time someone testing? Perhaps is correct indeed what with my Konfiguration suddenly not any more. though the Compiler Version 11 indicating.
CompileMarkSeparation
proc __xpse__endofprogram__

    PARAMETERS exitcode&
    REM {{SOMEEXTRAENDCOMMAND}}
    case %pcount=1 : end exitcode&
    end

endproc

DECLARE AA#,BB#
class EINTEST=EINTEST@,HPARENT&,BR%,X%
struct TEST=H%

proc EINTEST.EINTEST

    PARAMETERS CC%
    .HPARENT&=%HWND
    .X%=CC%
    .BR%=WIDTH(.HPARENT&) - 2 * .X%

endproc

CLS
DIM BB#,TEST
AA#=NEW(EINTEST,2)
BB#.H%=10

WITH AA#

    VAR X%=(.BR%)

ENDWITH

VAR G%=BB#.H%
PRINT X%
PRINT BB#.H%,G%
WAITINPUT
__xpse__endofprogram__
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
09/05/08  
 



Hm, both Examples walk by me each with and without XPSE and each in the Interpreter and as Exe without Problems.
 
09/05/08  
 




Sebastian
Sprenger
both Codes walk in the XProfan-11-Interpreter, -Compiler and the -Runtime without XPSE perfect.
 
Profan² 7.0e, XProfan 9, 11.2a, FreeProfan32
Windows Vista Home Premium 32-Bit, 2.8 Ghz, 4 GB RAM
Windows Me, 1.8 Ghz, 256 MB RAM
09/05/08  
 




Jörg
Sellmeyer
OK - I habs rausgefunden. thanks for Tests - so wars then clear, that it on of my Konfiguration lying. I had these vermaledeite Variablenoptimierung inadvertently activate. then crashes the Compiler kommentarlos ex.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
09/05/08  
 



Jojo, Rolands Variablenoptimierung is objectively with caution To enjoying.

Perhaps. could someone a Effizienztest manage which aufzeigt How objectively effizienter one so optimierter code is. for the drop the it itself rewards The variables "klein"zuoptimieren would I the XPSE the simply procure.
 
09/05/08  
 




Sebastian
Sprenger
iF
for the drop the it itself rewards The variables "klein"zuoptimieren

would be I say, that it the does... See attachment.
someone having in Rolands Forum, as it yet with Webmart was, even a DLL or otherwise one Tool written, circa Variablennamen To optimize.

1 kB
Hochgeladen:09/05/08
Downloadcounter106
Download
27 kB
Hochgeladen:09/05/08
Downloadcounter157
Download
 
Profan² 7.0e, XProfan 9, 11.2a, FreeProfan32
Windows Vista Home Premium 32-Bit, 2.8 Ghz, 4 GB RAM
Windows Me, 1.8 Ghz, 256 MB RAM
09/05/08  
 



rewards itself means even very, thanks for Test.

remaining only The question on Roland: have You to one BugFix aufzulegen or power it sooner sense the XPSE this beizubringen?
 
09/05/08  
 




Jörg
Sellmeyer
it would already wealthy, if it tappt im dunkeln on, say we time four characters shortening.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
09/05/08  
 



The characters go maximum gekürzt, time look whether it one ASCII gives which to that carry one Variablennamens suitable is, otherwise but not is used in Source code. (z.B. because to the characters not by regulärer Button cause can or not using becomes as Bezeichner)

and objectively - habs probiert, ASCII128 (the Euro-characters) is suitable
CompileMarkSeparation
declare1$
€1$="test"
print1$
waitkey
end
/pre>

there it of XProfan-Parser within Bezeichnern accepted becomes.
 
09/05/08  
 




René
Wagner
Moin,

i'd still heavy for plädieren the Roland (with Support of iF?) the whole in the "Standard" bugfixed.

Greeting René
 
Mit XProfan erstellte Freeware findet ihr hier:  [...] 

US World Domination Tour - bombing a country near you...
09/06/08  
 



I faith not, that Roland my Help needed, gleichwohl it itself the trouble but certainly (unfortunately) neither The next days assumes.
 
09/06/08  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

18.023 Views

Untitledvor 0 min.
RudiB.10/27/21
Jörg Sellmeyer11/04/11

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie