BRexx allows one to define strings that span multiple lines, e.g. like:

    ... cut ...
    /* Initialisation */
    call import "android.r"
    call AndroidInit

    /* specify XML layout */
    /* apply layout */
    /* start full screen */
    layout= *"*/<?xml version='1.0' encoding='utf-8'?>////<LinearLayout
    
xmlns:android='http://schemas.android.com/apk/res/android'////android:layout_width='match_parent'////android:layout_height='match_parent'////android:orientation='vertical'
    android:background='#89b524'>//*" *||//*"* 
//<Button////android:layout_width='match_parent'////android:layout_height='wrap_content'////android:id='@+id/notify'////android:text='Notification'
    />///*" *||//*"* 
///<Button////android:layout_width='match_parent'////android:layout_height='wrap_content'////android:id='@+id/brightness'////android:text='Brightness'
    />///*" *||//*"* 
///<Button////android:layout_width='match_parent'////android:layout_height='wrap_content'////android:id='@+id/exit'////android:text='Exit'
    />////</LinearLayout>/*" *call fullShow layout ... cut ...**

There are use cases (like the above) where this comes in to be quite handy. So 
the question would
be, whether such a feature would be possible and desirable for ooRexx?

However, there is a new "::resource" directive planned with ooRexx 5.0 which 
allows for defining any
kind of strings, also spanning multiple lines, which has the benefit that all 
lines get organized in
the .resources StringTable such that each defined resource can be fetched by 
its name.

---rony



------------------------------------------------------------------------------
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to